summaryrefslogtreecommitdiffstats
blob: 03044eb5d0069b3f69cd221aef9a130e4d01c6e1 (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
33
34
35
36
37
38
39
40
41
/*
 * Copyright (c) 2016-2017 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <Swift/Controllers/Highlighting/HighlightConfiguration.h>
#include <Swift/Controllers/UIInterfaces/HighlightEditorWindow.h>

#include <Swift/QtUI/ui_QtHighlightNotificationConfigDialog.h>

namespace Swift {

    class QtSettingsProvider;
    class QtSuggestingJIDInput;

    class QtHighlightNotificationConfigDialog : public QDialog, public HighlightEditorWindow {
        Q_OBJECT

        public:
            QtHighlightNotificationConfigDialog(QtSettingsProvider* settings, QWidget* parent = nullptr);
            virtual ~QtHighlightNotificationConfigDialog();

            virtual void show();
            virtual void setHighlightManager(HighlightManager* highlightManager);
            virtual void setContactSuggestions(const std::vector<Contact::ref>& suggestions);

        private:
            HighlightConfiguration getHighlightConfigurationFromDialog() const;
            void setHighlightConfigurationToDialog(const HighlightConfiguration& config);

        private:
            Ui::QtHighlightNotificationConfigDialog ui_;
            QtSettingsProvider* settings_;
            HighlightManager* highlightManager_ = nullptr;
            QtSuggestingJIDInput* jid_ = nullptr;
        };

}