|
1 /* |
|
2 * Copyright (c) 2003 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: smilevent declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef SMILEVENT_H |
|
21 #define SMILEVENT_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 #include <smiltime.h> |
|
27 #include <smiltextbuf.h> |
|
28 |
|
29 /** |
|
30 * Information on one Event |
|
31 */ |
|
32 class TSmilEvent |
|
33 { |
|
34 public: // Constructor |
|
35 |
|
36 enum TEventClass |
|
37 { |
|
38 EOther, EActivate, EBegin, EEnd, ERepeat, EFocusIn, EFocusOut, EInBounds, EOutOfBounds |
|
39 }; |
|
40 |
|
41 TSmilEvent( const TSmilTime& aTime, const TDesC& aClass ); |
|
42 TSmilEvent( const TSmilTime& aTime, const TDesC& aClass, const CSmilObject* aSource ); |
|
43 TSmilEvent( const TSmilTime& aTime, TEventClass aClass, const CSmilObject* aSource ); |
|
44 |
|
45 public: // New functions |
|
46 |
|
47 TPtrC ClassName() const; |
|
48 TPtrC SourceName() const; |
|
49 void SetSourceNameL(const TDesC& aSource); |
|
50 TBool IsInteractive() const; |
|
51 |
|
52 static TEventClass ClassForName(const TDesC& aName); |
|
53 static TPtrC NameForClass(TEventClass aClass); |
|
54 static TBool IsInteractive(TEventClass aClass); |
|
55 |
|
56 private: |
|
57 |
|
58 RSmilTextBuf iSourceName; |
|
59 |
|
60 public: |
|
61 TEventClass iClass; |
|
62 |
|
63 TSmilTime iTime; |
|
64 const CSmilObject* iSourceObject; |
|
65 |
|
66 }; |
|
67 |
|
68 #endif // ?INCLUDE_H |
|
69 |
|
70 // End of File |