qtmeetings sources to Maemo garage
[qtmeetings] / tests / IO / CommunicationManager / TestCommunicationManager.h
1 #include <QtTest/QtTest>
2 #include "Communication.h"
3 #include "ConnectionSettings.h"
4 #include "CommunicationManager.h"
5
6 class TestCommunicationManager: public QObject
7 {
8         Q_OBJECT
9
10 private slots:
11         void initTestCase();
12         void init();
13         void cleanup();
14         void cleanupTestCase();
15         void testErrorSignal();
16         void testFetchMeetings();
17         void testFetchMeetingDetails();
18         void meetingsFetched( const QList<Meeting*> &aMeetings );
19         void meetingDetailsFetched( Meeting &aDetailedMeeting );
20         void handleError( int aCode, CommunicationManager::CommunicationType aType );
21
22 private:
23         CommunicationManager* iMgr;
24         int iError;
25         QList<Meeting*> iMeetings;
26 };