equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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 __CALEN_VIEWER_SERVICE_H__ |
|
19 #define __CALEN_VIEWER_SERVICE_H__ |
|
20 |
|
21 // System includes |
|
22 #include <xqserviceprovider.h> |
|
23 #include <xqsharablefile.h> |
|
24 |
|
25 // Forward declarations |
|
26 class AgendaUtil; |
|
27 class AgendaEventViewer; |
|
28 |
|
29 class CalenViewerService : public XQServiceProvider |
|
30 { |
|
31 Q_OBJECT |
|
32 public: |
|
33 CalenViewerService(QObject *parent = 0); |
|
34 ~CalenViewerService(); |
|
35 |
|
36 public slots: |
|
37 bool view(QString file); |
|
38 bool view(XQSharableFile file); |
|
39 |
|
40 private slots: |
|
41 void entryViewReady(int error); |
|
42 void handleClientDisconnected(); |
|
43 |
|
44 private: |
|
45 void viewEntry(); |
|
46 void complete(bool ok); |
|
47 |
|
48 private: |
|
49 QString mFileName; |
|
50 AgendaUtil *mAgendaUtil; |
|
51 AgendaEventViewer *mViewer; |
|
52 bool mEntryViewReady; |
|
53 bool mWaitingForEntryViewReady; |
|
54 int mAsyncReqIndex; |
|
55 }; |
|
56 |
|
57 #endif // __CALEN_VIEWER_SERVICE_H__ |