|
1 /* |
|
2 * Copyright (c) 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_CAHANDLER_H |
|
19 #define C_CAHANDLER_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 class CCaInnerEntry; |
|
24 |
|
25 /** |
|
26 * ?one_line_short_description |
|
27 * ?more_complete_description |
|
28 * |
|
29 * @code |
|
30 * ?good_class_usage_example(s) |
|
31 * @endcode |
|
32 * |
|
33 * @lib ?library |
|
34 * @since S60 ?S60_version *** for example, S60 v3.0 |
|
35 */ |
|
36 class CCaHandler: public CBase |
|
37 { |
|
38 |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 IMPORT_C virtual ~CCaHandler(); |
|
45 |
|
46 /** |
|
47 * Query support for item type. |
|
48 * @since S60 v5.0 |
|
49 * @param aType Type. |
|
50 * @return ETrue if handler supports this type, EFalse otherwise. |
|
51 * @capability None. |
|
52 * @throws None. |
|
53 * @panic None. |
|
54 */ |
|
55 IMPORT_C virtual TBool SupportsType( const TDesC& aType ); |
|
56 |
|
57 /** |
|
58 * Handle command. |
|
59 * @since S60 v5.0 |
|
60 * @param aItem Item of supported type. |
|
61 * @param aCommand Command. |
|
62 * this status will be completed with the resulting error code. |
|
63 * @capability None. |
|
64 * @throws This implementation throws KErrNotSupported. |
|
65 * @panic None. |
|
66 */ |
|
67 IMPORT_C virtual void HandleCommandL( CCaInnerEntry& aEntry, |
|
68 const TDesC8& aCommand ); |
|
69 |
|
70 protected: |
|
71 |
|
72 /** |
|
73 * Constructor. |
|
74 */ |
|
75 IMPORT_C CCaHandler(); |
|
76 |
|
77 /** |
|
78 * Base constructor. |
|
79 */ |
|
80 IMPORT_C void BaseConstructL(); |
|
81 |
|
82 private: |
|
83 // data |
|
84 |
|
85 class TData; |
|
86 |
|
87 /** |
|
88 * Private data. |
|
89 */ |
|
90 TData* iData; |
|
91 |
|
92 }; |
|
93 |
|
94 #endif // C_CAHANDLER_H |