diff options
Diffstat (limited to 'Swift/QtUI/MUCSearch/MUCSearchItem.h')
-rw-r--r-- | Swift/QtUI/MUCSearch/MUCSearchItem.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Swift/QtUI/MUCSearch/MUCSearchItem.h b/Swift/QtUI/MUCSearch/MUCSearchItem.h index d2a2c2d..08daa21 100644 --- a/Swift/QtUI/MUCSearch/MUCSearchItem.h +++ b/Swift/QtUI/MUCSearch/MUCSearchItem.h @@ -1,17 +1,23 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <memory> + #include <QVariant> namespace Swift { - class MUCSearchItem { - public: - virtual ~MUCSearchItem() {} - virtual QVariant data(int role) = 0; - }; + +class MUCSearchServiceItem; + +class MUCSearchItem { + public: + virtual ~MUCSearchItem() {} + virtual void setParent(std::weak_ptr<MUCSearchServiceItem>) { } + virtual QVariant data(int role) = 0; + }; } |