summaryrefslogtreecommitdiffstats
blob: 427614a2936c63aa23ee14cabdce73aeb50fc0ec (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
32
/*
 * Copyright (c) 2010-2016 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <boost/optional.hpp>

#include <QDialog>

#include <Swiften/MUC/MUCBookmark.h>

#include <Swift/QtUI/ui_QtBookmarkDetailWindow.h>

namespace Swift {
	class QtBookmarkDetailWindow : public QDialog, protected Ui::QtBookmarkDetailWindow {
		Q_OBJECT
		public:
			QtBookmarkDetailWindow(QWidget* parent = NULL);
			virtual bool commit() = 0;
			boost::optional<MUCBookmark> createBookmarkFromForm();

		protected:
			void createFormFromBookmark(const MUCBookmark& bookmark);

		public slots:
			void accept();
	};
}