#include <QString>
#include <QList>
#include <QTime>
+#include <QUrl>
class ConnectionSettings;
class StartupSettings;
* 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:
* 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.
*/
void setRooms(const QList<Room*> aRooms);
+signals:
+ void configurationChanged();
+
public slots:
//! Saves setting values to file.
* \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.