|
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: stub CVideoCollectionWrapper class for unitesting CVideoListData |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __VIDEOCOLLECTIONWRAPPER_H__ |
|
19 #define __VIDEOCOLLECTIONWRAPPER_H__ |
|
20 |
|
21 #include <qvariant.h> |
|
22 |
|
23 class VideoCollectionWrapper |
|
24 { |
|
25 |
|
26 public: // Constructor |
|
27 |
|
28 /** |
|
29 * Returns singleton instance for this class. |
|
30 * |
|
31 * WARNING! Not safe to call this from destructor of another function scope static object! |
|
32 * |
|
33 * @return The singleton instance. |
|
34 */ |
|
35 static VideoCollectionWrapper &instance(); |
|
36 |
|
37 |
|
38 /** |
|
39 * stub method for testing, saves mLatestStatusCode and |
|
40 * mLatesAdditional |
|
41 */ |
|
42 void sendAsyncStatus(int statusCode, QVariant &additional); |
|
43 |
|
44 /** |
|
45 * lates error code gotten from senderror |
|
46 */ |
|
47 static int mLatestStatusCode; |
|
48 |
|
49 /** |
|
50 * latest additional data saved from senderror |
|
51 */ |
|
52 static QVariant mLatestAdditional; |
|
53 |
|
54 private: |
|
55 |
|
56 |
|
57 /** |
|
58 * Private contructor. |
|
59 */ |
|
60 VideoCollectionWrapper(); |
|
61 |
|
62 /** |
|
63 * Private destructor. |
|
64 * |
|
65 */ |
|
66 virtual ~VideoCollectionWrapper(); |
|
67 |
|
68 }; |
|
69 |
|
70 #endif // __VIDEOCOLLECTIONWRAPPER_H__ |
|
71 // End of file |
|
72 |
|
73 |
|
74 |