1 /* 2 SPDX-FileCopyrightText: 2009 Prakash Mohan <prakash.mohan@kdemail.net> 3 4 SPDX-License-Identifier: GPL-2.0-or-later 5 */ 6 7 #pragma once 8 9 #include "ui_observeradd.h" 10 11 #include <QDialog> 12 13 /** 14 * @class ObserverAdd 15 * 16 * Dialog to add new observers. 17 */ 18 class ObserverAdd : public QDialog 19 { 20 Q_OBJECT 21 public: 22 /** The default constructor */ 23 ObserverAdd(); 24 25 /** @short function to load the list of observers from the file */ 26 void loadObservers(); 27 28 public slots: 29 /** 30 * @short function to add the new observer 31 * to the observerList of the global logObject 32 */ 33 void auxSlot(); 34 void checkObserverInfo(); 35 void slotAddObserver(); 36 void slotRemoveObserver(); 37 void slotUpdateModel(); 38 39 private: 40 Ui::ObserverAdd ui; 41 }; 42