X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2FDomain%2FConfiguration%2FConfiguration.h;fp=src%2FDomain%2FConfiguration%2FConfiguration.h;h=45f9912ec78d9ec9318428fa854e671b9a4bac31;hb=663a2fc8ce3a0b8b987655fe709a831a3db9b315;hp=5cd7e6d3e2e94922719a28ea6d184e0eab9e9961;hpb=59b4a9d85f3cd02e90c8efcecc66f9150f8a61f8;p=qtmeetings diff --git a/src/Domain/Configuration/Configuration.h b/src/Domain/Configuration/Configuration.h index 5cd7e6d..45f9912 100644 --- a/src/Domain/Configuration/Configuration.h +++ b/src/Domain/Configuration/Configuration.h @@ -5,6 +5,7 @@ #include #include #include +#include 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 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.