summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/MUCSearch/MUCSearchEmptyItem.h')
-rw-r--r--Swift/QtUI/MUCSearch/MUCSearchEmptyItem.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/Swift/QtUI/MUCSearch/MUCSearchEmptyItem.h b/Swift/QtUI/MUCSearch/MUCSearchEmptyItem.h
index ca4b2b2..06c7c4e 100644
--- a/Swift/QtUI/MUCSearch/MUCSearchEmptyItem.h
+++ b/Swift/QtUI/MUCSearch/MUCSearchEmptyItem.h
@@ -1,11 +1,13 @@
/*
- * 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 <Swift/QtUI/MUCSearch/MUCSearchItem.h>
namespace Swift {
@@ -13,13 +15,14 @@ namespace Swift {
class MUCSearchEmptyItem : public MUCSearchItem {
public:
- MUCSearchEmptyItem(MUCSearchServiceItem* parent);
+ MUCSearchEmptyItem();
- MUCSearchServiceItem* getParent();
+ void setParent(std::shared_ptr<MUCSearchServiceItem> parent);
+ std::shared_ptr<MUCSearchServiceItem> getParent();
QVariant data(int role);
private:
- MUCSearchServiceItem* parent;
+ std::weak_ptr<MUCSearchServiceItem> parent_;
};
}