|
1 /** |
|
2 * Copyright (c) 2010 Sasken Communication Technologies Ltd. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html" |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * Manasij Roy, Nalina Hariharan |
|
14 */ |
|
15 |
|
16 #ifndef DISPLAYWIDGET_H |
|
17 #define DISPLAYWIDGET_H |
|
18 |
|
19 #include <QtGui/QWidget> |
|
20 #include "ui_displaywidget.h" |
|
21 #include "smfclient.h" |
|
22 #include <QFile> |
|
23 #include <QMessageBox> |
|
24 #include <QTextStream> |
|
25 #include <smfcontactfetcher.h> |
|
26 #include <smfpostprovider.h> |
|
27 #include <QSplashScreen> |
|
28 class DisplayWidget : public QWidget |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 DisplayWidget(QWidget *parent = 0); |
|
34 ~DisplayWidget(); |
|
35 //debugging |
|
36 void writeLog(QString log) const; |
|
37 public slots: |
|
38 //void friendsButtonClicked(); |
|
39 //void postsButtonClicked(); |
|
40 // void showGroups(SmfGroupList* grps, SmfError , SmfResultPage); |
|
41 void showFriends(SmfContactList* frnds, SmfError , SmfResultPage); |
|
42 void showPosts(SmfPostList* postlist, SmfError error, SmfResultPage resultPage); |
|
43 //void getData(int index); |
|
44 void interfaceSelected(); |
|
45 void serviceProviderSelected(); |
|
46 void serviceSelected(); |
|
47 private: |
|
48 SmfProvider* m_provider; |
|
49 SmfContactFetcher* m_contactFetcher; |
|
50 SmfPostProvider* m_postProvider; |
|
51 QList<SmfProvider>* providerList; |
|
52 QPixmap pixmap; |
|
53 QSplashScreen splash; |
|
54 Ui::DisplayWidgetClass ui; |
|
55 }; |
|
56 |
|
57 #endif // DISPLAYWIDGET_H |