Task #1170 Progress bar for meeting details pop-up
[qtmeetings] / src / IO / Communication / CommunicationManager.h
index d1ded78..6307c28 100644 (file)
@@ -51,6 +51,8 @@ public:
         *  \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 ) {};
@@ -85,7 +87,7 @@ signals:
 
 protected slots:
        //! Connected to Communication::requestFinished.
-       void requestFinished( int aRequestId, QHttp::Error aError );
+       void requestFinished( int aRequestId, int aError );
        //! Connected to Communication::readProgress.
        void readProgress( int aRequestId, int aDone, int aTotal );
        
@@ -146,6 +148,12 @@ protected:
         *  \param aRequestId Request ID number returned by the Communication::request
        */
        RequestData* takeRequest( int aRequestId );
+       //! Finds a RequestData from the iRequestInfos list.
+       /*! 
+        *  Returns a pointer to RequestData, NULL if not found.
+        *  \param aRequestType Request type
+       */
+       const RequestData* findRequest( RequestType aRequestType ) const;
        
 private:
        //! Instance of Connection settings of the fetching communication
@@ -158,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_*/