|
1 /* |
|
2 * Copyright (c) 2005-2006 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: This class defines the service used to change the default app. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef R_DEFAULTAPPSERVICE_H |
|
21 #define R_DEFAULTAPPSERVICE_H |
|
22 |
|
23 #include <AknServerApp.h> |
|
24 |
|
25 /** |
|
26 * Definition for the default app service |
|
27 * |
|
28 * This class defines the client side of the default app service. |
|
29 * |
|
30 * @lib defaultappclient.dll |
|
31 * @since S60 v5.0 |
|
32 */ |
|
33 class RDefaultAppService : public RAknAppServiceBase |
|
34 { |
|
35 |
|
36 private: |
|
37 |
|
38 /** messages used */ |
|
39 enum TIpcMessageIds |
|
40 { |
|
41 ESetDefaultAll = RApaAppServiceBase::KServiceCmdBase |
|
42 }; |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Sends SetDefault message to the server |
|
47 * |
|
48 * @since S60 v5.0 |
|
49 * @param aFlags service class (value is transparent for this class/function) |
|
50 * @return 0 for success, negative value on failure |
|
51 */ |
|
52 TInt SetDefault( TInt aFlags ); |
|
53 |
|
54 private: // From RApaAppServiceBase |
|
55 |
|
56 /** |
|
57 * From RApaAppServiceBase. |
|
58 * Returns the uid of the service |
|
59 * |
|
60 * @since S60 v5.0 |
|
61 * @return the Uid of the provided service (Default App Service) |
|
62 */ |
|
63 TUid ServiceUid() const; |
|
64 }; |
|
65 |
|
66 |
|
67 #endif // R_DEFAULTAPPSERVICE_H |
|
68 |