|
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: smilinstancetime declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef SMILINSTANCETIME_H |
|
21 #define SMILINSTANCETIME_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "smiltime.h" |
|
26 //#include "smilobject.h" |
|
27 // CONSTANTS |
|
28 const TInt KOffsetValue = 1; |
|
29 const TInt KEventValue = 2; |
|
30 const TInt KSyncBaseValue = 3; |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class CSmilObject; |
|
34 class TSmilTime; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 class CSmilInstanceTime : public CBase |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * C++ default constructor. |
|
44 */ |
|
45 CSmilInstanceTime( TInt aType, TSmilTime aTime ); |
|
46 |
|
47 /** |
|
48 * C++ default constructor. |
|
49 */ |
|
50 CSmilInstanceTime( TInt aType, TSmilTime aTime, |
|
51 CSmilObject* aSyncBase,TBool aSyncToBegin ); |
|
52 |
|
53 public: // New functions |
|
54 |
|
55 TBool IsOffsetValue() const; |
|
56 |
|
57 TBool IsEventValue() const; |
|
58 |
|
59 CSmilInstanceTime* Next() const; |
|
60 |
|
61 CSmilObject* Syncbase() const; |
|
62 |
|
63 TBool IsSyncBaseValue() const; |
|
64 |
|
65 TBool IsBeginSync() const; |
|
66 |
|
67 TBool IsEndSync() const; |
|
68 |
|
69 TSmilTime Time() const; |
|
70 |
|
71 void SetTime( TSmilTime aTime ); |
|
72 |
|
73 void SetSyncbase( CSmilObject* aObject ); |
|
74 |
|
75 void SetNext( CSmilInstanceTime* aTime ); |
|
76 |
|
77 void SetSyncBegin( TBool aBool ); |
|
78 |
|
79 TSmilTime Offset() const; |
|
80 |
|
81 private: // Data |
|
82 TInt iType; |
|
83 TSmilTime iTime; |
|
84 TSmilTime iOffset; |
|
85 CSmilInstanceTime* iNext; |
|
86 CSmilObject* iSyncbase; |
|
87 TBool iSyncBegin; |
|
88 }; |
|
89 |
|
90 #endif // ?INCLUDE_H |
|
91 |
|
92 // End of File |