|
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: VideoServiceUriFetch stub definition |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __VIDEOSERVICESURIFETCH_H__ |
|
19 #define __VIDEOSERVICESURIFETCH_H__ |
|
20 |
|
21 //INCLUDES |
|
22 #include "xqserviceproviderstub.h" |
|
23 #include <QStringList> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class VideoServices; |
|
27 class QLatin1String; |
|
28 |
|
29 class VideoServiceUriFetch : public XQServiceProvider |
|
30 { |
|
31 |
|
32 /** |
|
33 * define to be able to use signals and slots |
|
34 */ |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 |
|
39 /** |
|
40 * contructor |
|
41 */ |
|
42 VideoServiceUriFetch( VideoServices *parent, QLatin1String service ); |
|
43 |
|
44 /** |
|
45 * destructor |
|
46 */ |
|
47 ~VideoServiceUriFetch(); |
|
48 |
|
49 /** |
|
50 * Returns service active status |
|
51 * |
|
52 * @return bool true if active, false if not active |
|
53 * |
|
54 */ |
|
55 bool isActive(); |
|
56 |
|
57 /** |
|
58 * Completes the service |
|
59 * |
|
60 * @param fileList list of file URIs |
|
61 * |
|
62 */ |
|
63 void complete(QStringList filesList); |
|
64 |
|
65 /** |
|
66 * Returns the context title set by service requestee |
|
67 * |
|
68 * @return QString the title |
|
69 * |
|
70 */ |
|
71 QString contextTitle() const; |
|
72 |
|
73 public slots: // for QTHighway to notify provider about request |
|
74 /* |
|
75 * Client can use this method launch video URI fetching |
|
76 * |
|
77 */ |
|
78 void fetch(); |
|
79 |
|
80 /* |
|
81 * Client can use this method launch video URI fetching |
|
82 * |
|
83 * @param title title to be set |
|
84 * |
|
85 */ |
|
86 void fetch(const QString& title); |
|
87 |
|
88 public slots: // for provider to notify client |
|
89 void fetchFailed( int errorCode ); |
|
90 |
|
91 private: |
|
92 void doComplete( QStringList filesList); |
|
93 |
|
94 private: |
|
95 /* |
|
96 * The request index |
|
97 */ |
|
98 int mRequestIndex; |
|
99 |
|
100 /* |
|
101 * Pointer to owning VideoServices |
|
102 */ |
|
103 VideoServices* mServiceApp; |
|
104 |
|
105 /* |
|
106 * The title requested by the service user |
|
107 */ |
|
108 QString mTitle; |
|
109 }; |
|
110 |
|
111 #endif //__VIDEOSERVICESURIFETCH_H__ |