1 /* |
1 /* |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
17 |
17 |
18 |
18 |
19 |
19 |
20 #ifndef IA_UPDATE_LAUNCHER_CLIENT_H |
20 #ifndef IA_UPDATE_LAUNCHER_CLIENT_H |
21 #define IA_UPDATE_LAUNCHER_CLIENT_H |
21 #define IA_UPDATE_LAUNCHER_CLIENT_H |
22 #include <QObject> |
|
23 |
22 |
24 class XQServiceRequest; |
23 #include <AknServerApp.h> |
|
24 #include <e32std.h> |
25 |
25 |
26 //class IAUpdateLauncherClient |
26 /** |
27 class IAUpdateLauncherClient : public QObject |
27 * |
28 { |
28 */ |
29 Q_OBJECT |
29 class RIAUpdateLauncherClient : public RAknAppServiceBase |
|
30 { |
|
31 |
30 public: |
32 public: |
31 |
33 |
|
34 /** |
|
35 * Constructor. |
|
36 */ |
32 |
37 |
33 IAUpdateLauncherClient(); |
38 RIAUpdateLauncherClient(); |
34 ~IAUpdateLauncherClient(); |
|
35 |
39 |
36 void launch(); |
40 /** |
|
41 * This function will crete new embedded IAUpdate instance. |
|
42 */ |
|
43 TInt Open(); |
|
44 |
|
45 /** |
|
46 * Close client server connection to IAUpdate |
|
47 */ |
|
48 void Close(); |
37 |
49 |
38 protected slots: |
50 |
39 void requestCompleted(const QVariant& value); |
51 /** |
40 void requestError(int err); |
52 * Command asks IAUpdate to show updates list |
|
53 * |
|
54 * @param aStatus The status will be updated when the operation |
|
55 * has been completed. |
|
56 */ |
|
57 void ShowUpdates( TBool& aRefreshFromNetworkDenied, |
|
58 TRequestStatus& aStatus ); |
|
59 |
|
60 /** |
|
61 * Cancel async ShowUpdates() request |
|
62 */ |
|
63 void CancelAsyncRequest(); |
|
64 |
|
65 public: // RAknAppServiceBase |
|
66 |
|
67 /** |
|
68 * @see RAknAppServiceBase::ServiceUid |
|
69 */ |
|
70 TUid ServiceUid() const; |
41 |
71 |
42 |
72 |
43 private: |
73 private: //data |
44 |
74 |
45 XQServiceRequest* mServiceRequest; |
75 TBool iConnected; |
|
76 |
|
77 TPtr8 iPtr1; |
|
78 |
46 }; |
79 }; |
47 |
80 |
48 #endif // IA_UPDATE_LAUNCHER_CLIENT_H |
81 #endif // IA_UPDATE_LAUNCHER_CLIENT_H |