summaryrefslogtreecommitdiffstats
blob: 09e47422e3f7ef05e89d37be077ba7f68062eccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef SWIFTEN_MockTreeWidgetFactory_H
#define SWIFTEN_MockTreeWidgetFactory_H

#include "Swiften/Roster/TreeWidgetFactory.h"
#include "Swiften/Roster/UnitTest/MockTreeWidget.h"
#include "Swiften/Roster/UnitTest/MockTreeWidgetItem.h"

namespace Swift {

class MockTreeWidgetItem;
class MockTreeWidget;

class MockTreeWidgetFactory : public TreeWidgetFactory {
	public:
		virtual ~MockTreeWidgetFactory() {}
		virtual TreeWidget* createTreeWidget() {
			return new MockTreeWidget();
		};
		virtual TreeWidgetItem* createTreeWidgetItem(TreeWidgetItem*) {
			return new MockTreeWidgetItem();
		};
		virtual TreeWidgetItem* createTreeWidgetItem(TreeWidget*) {
			return new MockTreeWidgetItem();
		}
};

}

#endif