|
1 /* |
|
2 * Copyright (c) 2007 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 DiagFwInternal::TEvent |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef DIAGENGINEEVENTBASIC_H |
|
20 #define DIAGENGINEEVENTBASIC_H |
|
21 |
|
22 // SYSTEM INCLUDES |
|
23 #include <e32base.h> // CBase |
|
24 |
|
25 // USER INCLUDES |
|
26 #include "diagengineevents.h" |
|
27 |
|
28 namespace DiagFwInternal |
|
29 { |
|
30 /** |
|
31 * CEventBasic |
|
32 * |
|
33 * Basic event with just event ID. |
|
34 */ |
|
35 NONSHARABLE_CLASS( CEventBasic ) : public CBase |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * C++ Constructor |
|
40 * |
|
41 * @param aType - Type of event. |
|
42 * @see DiagFwInternal::TEvent |
|
43 */ |
|
44 CEventBasic( TEvent aType ); |
|
45 |
|
46 /** |
|
47 * Get Type |
|
48 * |
|
49 * @see DiagFwInternal::TEvent |
|
50 * @return Type of event. |
|
51 */ |
|
52 TEvent GetType() const; |
|
53 |
|
54 /** |
|
55 * Get name of the event |
|
56 * |
|
57 * @return Name of the event |
|
58 */ |
|
59 const TDesC& ToString() const; |
|
60 |
|
61 private: // private data |
|
62 /** |
|
63 * iType - event type. |
|
64 * @see DiagFwInternal::TEvent |
|
65 */ |
|
66 TEvent iType; |
|
67 }; |
|
68 } // namespace DiagFwInternal |
|
69 |
|
70 #endif // ifndef DIAGENGINEEVENTBASIC_H |
|
71 |
|
72 // End of File |
|
73 |