Move AddNode dialog layout code into separate ui file
[vlp.git] / src / lgconfig / lgconfig.h
index 700af05140711aed23d8647060c878b5d57f28fc..4036391e1e7fbcc62828f82a592a2ace619fd0f4 100644 (file)
@@ -10,6 +10,9 @@
 
 #include "ui/VLPConfigWindow.h"
 
+namespace loglan {
+namespace vlp {
+
 class VLPEntry {
 public:
        int ID;
@@ -24,14 +27,29 @@ public:
 class QInstall: public QMainWindow, private Ui::VLPConfigWindow {
        Q_OBJECT
 public:
-       QMenuBar *bar;
        Q3ListBox *nodelist;
-       QPushButton *infob;
        QList<VLPEntry*> Nodes;
 
+       /**
+        * Class constructor
+        */
        QInstall();
-       bool check_id(int);
-       bool check_addr(char*);
+
+       /**
+        * Checks if node with specified id already exists
+        *
+        * @param id ID of the node to search for
+        * @return true if node with specified ID has been found, false otherwise
+        */
+       bool check_id(int id);
+
+       /**
+        * Checks if node with specified address already exists
+        *
+        * @param addr address of the node to search for
+        * @return true if node with specified address has been found, false otherwise
+        */
+       bool check_addr(char * addr);
 
 public slots:
        void AddNode();
@@ -42,4 +60,7 @@ private slots:
        void on_actionQuit_triggered();
 };
 
+}
+}
+
 #endif /* _VLP_LGCONFIG_H */