equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef FEEDVIEW_H |
|
19 #define FEEDVIEW_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <hbview.h> |
|
23 #include <qtcontacts.h> |
|
24 #include <hbdocumentloader.h> |
|
25 |
|
26 class PrcPresenceWriter; |
|
27 class PrcPresenceReader; |
|
28 class HbView; |
|
29 class QTimer; |
|
30 |
|
31 QTM_USE_NAMESPACE |
|
32 |
|
33 class FeedView : public QObject |
|
34 { |
|
35 Q_OBJECT |
|
36 public: |
|
37 FeedView(QObject *parent = 0); |
|
38 ~FeedView(); |
|
39 |
|
40 HbView* view() const { return mView; } |
|
41 |
|
42 private slots: |
|
43 void startPressed(); |
|
44 void stopPressed(); |
|
45 void createPressed(); |
|
46 |
|
47 void updateRandomPresence(); |
|
48 |
|
49 private: //data |
|
50 HbView* mView; |
|
51 PrcPresenceWriter* iWriter; |
|
52 PrcPresenceReader* iReader; |
|
53 QContactManager* mManager; |
|
54 QTimer* mUpdateTimer; |
|
55 HbDocumentLoader mDocumentLoader; |
|
56 |
|
57 QStringList mBuddyList; |
|
58 |
|
59 bool mStarted; |
|
60 }; |
|
61 |
|
62 #endif /* FEEDVIEW_H */ |