File indexing completed on 2025-01-19 09:45:52
0001 /* 0002 SPDX-FileCopyrightText: 2009 Prakash Mohan <prakash.mohan@kdemail.net> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "ui_observeradd.h" 0010 0011 #include <QDialog> 0012 0013 /** 0014 * @class ObserverAdd 0015 * 0016 * Dialog to add new observers. 0017 */ 0018 class ObserverAdd : public QDialog 0019 { 0020 Q_OBJECT 0021 public: 0022 /** The default constructor */ 0023 ObserverAdd(); 0024 0025 /** @short function to load the list of observers from the file */ 0026 void loadObservers(); 0027 0028 public slots: 0029 /** 0030 * @short function to add the new observer 0031 * to the observerList of the global logObject 0032 */ 0033 void auxSlot(); 0034 void checkObserverInfo(); 0035 void slotAddObserver(); 0036 void slotRemoveObserver(); 0037 void slotUpdateModel(); 0038 0039 private: 0040 Ui::ObserverAdd ui; 0041 };