1 /* |
|
2 * Copyright (c) 2009-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: class declaration for visiting nokia music shop |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef IRQMUSICSHOP_H_ |
|
20 #define IRQMUSICSHOP_H_ |
|
21 |
|
22 #include <QString> |
|
23 |
|
24 class CMPXFindInMShop; //For Find in Shop |
|
25 |
|
26 |
|
27 /*! |
|
28 * This class provides music shop related interface. |
|
29 * |
|
30 */ |
|
31 class IRQMusicShop |
|
32 { |
|
33 public: |
|
34 |
|
35 /*! |
|
36 * Get the instance of IRQMusicShop |
|
37 * @return IRQMusicShop* |
|
38 */ |
|
39 IMPORT_C static IRQMusicShop* openInstance(); |
|
40 |
|
41 /*! |
|
42 * Close the instance of IRQMusicShop |
|
43 */ |
|
44 IMPORT_C void closeInstance(); |
|
45 |
|
46 private: |
|
47 |
|
48 /** |
|
49 * Creates IRQMusicShop instance |
|
50 */ |
|
51 static IRQMusicShop* createInstanceL(); |
|
52 |
|
53 /*! |
|
54 * Constructor. |
|
55 */ |
|
56 IRQMusicShop(); |
|
57 |
|
58 /*! |
|
59 * Destructor. |
|
60 */ |
|
61 ~IRQMusicShop(); |
|
62 |
|
63 |
|
64 void constructL(); |
|
65 |
|
66 public: |
|
67 /*! |
|
68 * Launch music shop app |
|
69 * @return bool ture if launch successfully, otherwise return false |
|
70 */ |
|
71 IMPORT_C static bool launchMusicShop(); |
|
72 |
|
73 /*! |
|
74 * Launch shazam app |
|
75 * @return bool ture if launch successfully, otherwise return false |
|
76 */ |
|
77 IMPORT_C static bool launchShazam(); |
|
78 |
|
79 /*! |
|
80 * Find song in music shop app |
|
81 * @param const QString& aSongName |
|
82 * @param const QString& aArtistName |
|
83 * @param const QString& aAlbumName |
|
84 * @return bool ture if operation successfully, otherwise return false |
|
85 */ |
|
86 IMPORT_C bool findInMusicShop(const QString& aSongName, |
|
87 const QString& aArtistName = QString(), |
|
88 const QString& aAlbumName = QString()); |
|
89 |
|
90 #ifdef USER_DEFINED_MUSICSHOP |
|
91 private: |
|
92 void resetMusicShopUrlL(); |
|
93 void restoreMusicShopUrlL(); |
|
94 #endif |
|
95 |
|
96 private: |
|
97 |
|
98 CMPXFindInMShop* iMPXFindInShop; |
|
99 |
|
100 /** |
|
101 * Number of objects currently referring to the singleton object |
|
102 */ |
|
103 int iSingletonInstances; |
|
104 |
|
105 #ifdef USER_DEFINED_MUSICSHOP |
|
106 QString iMusicShopUrl; |
|
107 bool iResetAlready; |
|
108 #endif |
|
109 }; |
|
110 |
|
111 #endif /* IRQMUSICSHOP_H_ */ |
|
112 |
|