|
1 /* |
|
2 * Copyright (c) 2008-2008 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: CCFActionService class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CFACTIONSERVICE_H |
|
20 #define CFACTIONSERVICE_H |
|
21 |
|
22 // SYSTEM INCLUDE FILES |
|
23 |
|
24 // USER INCLUDE FILES |
|
25 #include "cfservicebase.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class RCFClientSession; |
|
29 class CCFActionSubscription; |
|
30 class CCFActionSubscriptionListener; |
|
31 |
|
32 // DATA TYPES |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * Services class to handle action related features. |
|
38 * |
|
39 * @lib cfclient.lib |
|
40 * @since S60 5.0 |
|
41 */ |
|
42 NONSHARABLE_CLASS( CCFActionService ): public CCFServiceBase |
|
43 { |
|
44 public: |
|
45 |
|
46 /** |
|
47 * Symbian two phased constructors. |
|
48 * |
|
49 * @since S60 5.0 |
|
50 * @param None. |
|
51 * @return CCFActionService* |
|
52 */ |
|
53 static CCFActionService* NewL( RCFClientSession& aSession, |
|
54 MCFListener& aListener ); |
|
55 static CCFActionService* NewLC( RCFClientSession& aSession, |
|
56 MCFListener& aListener); |
|
57 |
|
58 /** |
|
59 * C++ destructor. |
|
60 */ |
|
61 virtual ~CCFActionService( ); |
|
62 |
|
63 public: |
|
64 |
|
65 // @see CCFClient |
|
66 TInt DefineAction( const TDesC& aActionIdentifier, |
|
67 const TSecurityPolicy& aSecurityPolicy ); |
|
68 |
|
69 // @see CCFClient |
|
70 void SubscribeActionL( |
|
71 CCFActionSubscription& aSubscription ); |
|
72 |
|
73 // @see CCFClient |
|
74 void UnsubscribeActionL( |
|
75 CCFActionSubscription& aSubscription ); |
|
76 |
|
77 private: |
|
78 |
|
79 // Stream action subscription |
|
80 HBufC8* WriteStreamActionSubscriptionLC( |
|
81 CCFActionSubscription& aSubscription ); |
|
82 |
|
83 private: |
|
84 |
|
85 CCFActionService( RCFClientSession& aSession, MCFListener& aListener ); |
|
86 void ConstructL( ); |
|
87 |
|
88 private: // Data |
|
89 |
|
90 /** Action subscription listener */ |
|
91 CCFActionSubscriptionListener* iActionSubscriptionListener; |
|
92 }; |
|
93 |
|
94 #endif // CFACTIONSERVICE_H |
|
95 |