User interface update
[qtmeetings] / src / IO / Communication / CommunicationManager.h
index a8d8185..abfce60 100644 (file)
@@ -36,7 +36,7 @@ public:
        /*! 
         *  \param aConnection Reference to the fetching ConnectionSettings.
        */
-       CommunicationManager( const ConnectionSettings &aConnection );
+       CommunicationManager( /*const ConnectionSettings &aConnection*/ );
        virtual ~CommunicationManager();
        //! Starts fetching meetings. Meetings are returned by the meetingsFetched signal.
        /*! 
@@ -45,12 +45,14 @@ public:
         *  \param aUntil QDateTime to search meetings until.
         *  \param aIn Meeting room meetings are searched.
        */
-       void fetchMeetings( const QDateTime &aFrom, const QDateTime &aUntil, const Room &aIn );
+       void fetchMeetings( /*const QDateTime &aFrom, const QDateTime &aUntil*/const int aWeek, const int aYear, const Room &aIn );
        //! Starts fetching a meeting details. Details are returned by the meetingDetailsFetched signal.
        /*! 
         *  \param aMeeting A meeting the detailed information is wanted.
        */
        void fetchMeetingDetails( Meeting &aMeeting );
+       //! Cancels all meeting detail requests.
+       void cancelFetchMeetingDetails();
 /* Not supported member functions which are using the modifying communication
        void setModifyCredentials( const QString &aUsername, const QString &aPassword ) {};
        void createMeeting( const Meeting &aMeeting ) {};
@@ -155,7 +157,7 @@ protected:
        
 private:
        //! Instance of Connection settings of the fetching communication
-       ConnectionSettings *iConnectionSettings;
+       //ConnectionSettings *iConnectionSettings;
        //! Instance of the fetching communication
        Communication* iFetchingCommunication;
        //! Instance of the modifying communication
@@ -164,6 +166,8 @@ private:
        QList<Meeting*> iMeetings;
        //! Additional information about requests made to the Exchange server
        QList<RequestData*> iRequestInfos;
+       //! A flag that all meeting detail requests has been cancelled
+       QList<int> iCancelledRequests;
 };
 
 #endif /*COMMUNICATIONMANAGER_H_*/