diff options
| author | Kevin Smith <git@kismith.co.uk> | 2010-04-12 09:50:20 (GMT) | 
|---|---|---|
| committer | Kevin Smith <git@kismith.co.uk> | 2010-04-12 12:07:45 (GMT) | 
| commit | 6dcca70b2f9ed13817e3600d96dbc9af3b597241 (patch) | |
| tree | 94a9083a787d83d0d2bf987d2135238177e177a8 /Swiften/Roster/UnitTest/MockTreeWidgetItem.h | |
| parent | b4604f14389aa6276f6d2c3bff2a873b4dfe0913 (diff) | |
| download | swift-6dcca70b2f9ed13817e3600d96dbc9af3b597241.zip swift-6dcca70b2f9ed13817e3600d96dbc9af3b597241.tar.bz2 | |
RosterController testing.
Diffstat (limited to 'Swiften/Roster/UnitTest/MockTreeWidgetItem.h')
| -rw-r--r-- | Swiften/Roster/UnitTest/MockTreeWidgetItem.h | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/Swiften/Roster/UnitTest/MockTreeWidgetItem.h b/Swiften/Roster/UnitTest/MockTreeWidgetItem.h index 1ec1441..08b9f1a 100644 --- a/Swiften/Roster/UnitTest/MockTreeWidgetItem.h +++ b/Swiften/Roster/UnitTest/MockTreeWidgetItem.h @@ -1,5 +1,5 @@  /* - * Copyright (c) 2010 Remko Tronçon + * Copyright (c) 2010 Kevin Smith   * Licensed under the GNU General Public License v3.   * See Documentation/Licenses/GPLv3.txt for more information.   */ @@ -14,10 +14,11 @@  #include <boost/shared_ptr.hpp>  namespace Swift { - +	class MockTreeWidgetFactory;  class MockTreeWidgetItem : public TreeWidgetItem {  	public: -		virtual ~MockTreeWidgetItem() {}; +		MockTreeWidgetItem(MockTreeWidgetFactory* factory) {factory_ = factory;}; +		virtual ~MockTreeWidgetItem();  		virtual void setText(const String& text) {text_ = text;};  		String getText() {return text_;};  		virtual void setStatusText(const String&) {}; @@ -28,6 +29,7 @@ class MockTreeWidgetItem : public TreeWidgetItem {  		virtual void hide() {};  	private:  		String text_; +		MockTreeWidgetFactory* factory_;  };  } | 
 Swift
 Swift