User interface update
[qtmeetings] / src / Domain / Configuration / Configuration.h
index 5cd7e6d..45f9912 100644 (file)
@@ -5,6 +5,7 @@
 #include <QString>
 #include <QList>
 #include <QTime>
+#include <QUrl>
 
 class ConnectionSettings;
 class StartupSettings;
@@ -19,8 +20,7 @@ class DateTimeSettings;
  * file at initialization time. Since there is one appliation per device normally running, therefore
  * there is only one instance of this class, which is accessible by using a statis getter method.
  */
-class Configuration : public QObject
-{
+class Configuration: public QObject {
 Q_OBJECT
 
 private:
@@ -46,7 +46,39 @@ public:
         * Gets the connection settings.
         * \return Pointer to ConnectionSettings instance.
         */
-       ConnectionSettings* connectionSettings();
+       //ConnectionSettings* connectionSettings();
+       /**
+        * Returns the current server URL
+        */
+       QUrl getServerUrl();
+       /**
+        * Returns the current username
+        */
+       QString getUsername();
+       /**
+        * Returns the current users password
+        */
+       QString getPassword();
+       /**
+        * Returns the refresh interval
+        */
+       unsigned int getRefreshinterval();
+       /**
+        * Sets the current server URL
+        */
+       void setServerUrl(QUrl serverUrl);
+       /**
+        * Sets the current username
+        */
+       void setUsername(QString username);
+       /**
+        * Sets the current users password
+        */
+       void setPassword(QString password);
+       /**
+        * Sets the refresh interval
+        */
+       void setRefreshinterval(unsigned int refreshinterval);
        //! Gets the detault room.
        /*!
         * Gets the default meeting room.
@@ -96,6 +128,9 @@ public:
         */
        void setRooms(const QList<Room*> aRooms);
 
+signals:
+       void configurationChanged();
+
 public slots:
 
        //! Saves setting values to file.
@@ -111,7 +146,7 @@ private:
         * \param aPath path and name of configuration file
         * \return Configuration object.
         */
-       static Configuration* readFromXML(const QString &aPath);
+       void readFromXML(const QString &aPath);
        //! Static. Reads settings of connection from and XML node.
        /*!
         * Static. Reads settings of connection from an XML node.