Show confidential meeting details setting added
[qtmeetings] / src / Domain / Configuration / Configuration.h
index 45f9912..9c5c253 100644 (file)
@@ -79,6 +79,14 @@ public:
         * Sets the refresh interval
         */
        void setRefreshinterval(unsigned int refreshinterval);
+       
+       //! Sets the confidential meeting details showing setting.
+       /*!
+        * Sets the confidential meeting details showing setting.
+        * \param confidential meeting details showing setting.
+        */
+       bool setShowConfidentialMeetingDetails(bool showconfidentialmeetingdetails);
+       
        //! Gets the detault room.
        /*!
         * Gets the default meeting room.
@@ -123,11 +131,18 @@ public:
        QByteArray adminPassword();
        //! Sets room list.
        /*!
-        * Sets  room list.
+        * Sets room list.
         * \param aRooms List of rooms
         */
        void setRooms(const QList<Room*> aRooms);
 
+       //! Gets the confidential meeting details showing setting.
+       /*!
+        * Gets the confidential meeting details showing setting.
+        * \return confidential meeting details showing setting.
+        */
+       bool showConfidentialMeetingDetails();
+       
 signals:
        void configurationChanged();
 
@@ -153,41 +168,41 @@ private:
         * \param aXml QDomNode containing connection parameters.
         * \return Pointer to ConnectionSettings object.
         */
-       static ConnectionSettings* readConnectionSettings(const QDomNode &aXML);
+       ConnectionSettings* readConnectionSettings(const QDomNode &aXML);
        //! Static. Reads rooms from an XML node.
        /*!
         * Static. Reads rooms from an XML node.
         * \param aXml QDomNode containing meeting room parameters
         * \return List of meetingrooms.
         */
-       static QList<Room*> readRooms(const QDomNode &aXML);
+       QList<Room*> readRooms(const QDomNode &aXML);
        //! Static. Reads language code from an XML node.
        /*!
         * Static. Reads rooms from an XML node.
         * \param aXml QDomNode containing language code
         * \return Language code.
         */
-       static QString readLanguageCode(const QDomNode &aXML);
+       QString readLanguageCode(const QDomNode &aXML);
        //! Static. Reads settings of startup from an XML node.
        /*!
         * Static. Reads settings of startup from an XML node.
         * \param aXml QDomNode containing startup parameters
         * \return Pointer to the read StartupSettings object.
         */
-       static StartupSettings* readStartupSettings(const QDomNode &aXML);
+       StartupSettings* readStartupSettings(const QDomNode &aXML);
        /*!
         * Static function to load and store display settings from xml node.
         * \param aXml QDomNode containing display parameters
         * \return Pointer to the read DisplaySettings object.
         */
-       static DisplaySettings* readDisplaySettings(const QDomNode &aXML);
+       DisplaySettings* readDisplaySettings(const QDomNode &aXML);
        //! Static. Reads the date/time settings from an XML node.
        /*!
         * Static. Reads the date/time settings from an XML node.
         * \param aXml QDomNode containing the date/time settings
         * \return The date/time settings.
         */
-       static DateTimeSettings* readDateTimeSettings(const QDomNode &aXML);
+       DateTimeSettings* readDateTimeSettings(const QDomNode &aXML);
 
        //! Static. Reads adminstrator's password from an XML node.
        /*!
@@ -195,8 +210,16 @@ private:
         * \param aXml QDomNode containing admin password
         * \return Admin password.
         */
-       static QByteArray readAdminPassword(const QDomNode &aXML);
+       QByteArray readAdminPassword(const QDomNode &aXML);
 
+       //! Static. Reads confidential meeting details setting from an XML node.
+       /*!
+        * Static. Reads confidential meeting details setting from an XML node.
+        * \param aXml QDomNode containing confidential meeting details setting
+        * \return Confidential meeting details setting.
+        */
+       void readPrivacySettings(const QDomNode &aXML);
+       
        //! Saves connection data to the document.
        /*!
         * Reads data from iConnectionSettings and saves it to the aXML document.
@@ -241,6 +264,13 @@ private:
         */
        void saveAdminPassword(const QDomNode &aXML);
 
+       //! Saves confidential meeting details setting to the document.
+       /*!
+        * Reads data from iShowConfidentialMeetingDetails and saves it to the aXML document.
+        * \param aXml QDomNode confidential meeting details setting
+        */
+       void savePrivacySettings(QDomNode &aXML);
+               
        //! Hash password with md5 method.
        /*!
         * Hash password with md5 method.
@@ -271,6 +301,7 @@ private:
        //! Stores language code
        QString iLanguageCode;
 
+       bool iShowConfidentialMeetingDetails;
 };
 
 #endif /*CONFIGURATION_H_*/