blob: f6134da6614bdfe53d7202653d38d0e6b9362bea (
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
|
/*
* Copyright (c) 2010 Kevin Smith
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
#pragma once
#include "Swift/Controllers/UIInterfaces/MainWindow.h"
#include "Swiften/Roster/TreeWidget.h"
namespace Swift {
class MockMainWindow : public MainWindow {
public:
MockMainWindow(TreeWidget* treeWidget) {treeWidget_ = treeWidget;};
virtual ~MockMainWindow() {};
virtual TreeWidget* getTreeWidget() {return treeWidget_;};
virtual void setMyName(const String& /*name*/) {};;
virtual void setMyAvatarPath(const String& /*path*/) {};
virtual void setMyStatusText(const String& /*status*/) {};
virtual void setMyStatusType(StatusShow::Type /*type*/) {};
private:
TreeWidget* treeWidget_;
};
}
|