equal
deleted
inserted
replaced
|
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #if !defined(__MSVTIME_H__) |
|
17 #define __MSVTIME_H__ |
|
18 |
|
19 #if !defined(__E32STD_H__) |
|
20 #include <e32std.h> |
|
21 #endif |
|
22 |
|
23 #if !defined(__S32STRM_H__) |
|
24 #include <s32strm.h> |
|
25 #endif |
|
26 |
|
27 typedef TUint16 TMsvDays; |
|
28 typedef TUint16 TMsvMinutes; |
|
29 |
|
30 class TMsvTime |
|
31 /** |
|
32 @internalComponent |
|
33 @released |
|
34 */ |
|
35 { |
|
36 public: |
|
37 TMsvTime(); |
|
38 // |
|
39 void SetTime(const TTime& aTime); |
|
40 void GetTime(TTime& aTime) const; |
|
41 // |
|
42 TBool operator>=(const TTime& aTime) const; |
|
43 TBool IsNull() const; |
|
44 // |
|
45 void InternalizeL(RReadStream& aStream); |
|
46 void ExternalizeL(RWriteStream& aStream) const; |
|
47 // |
|
48 private: |
|
49 TTime MinTime() const; |
|
50 TTime MaxTime() const; |
|
51 // |
|
52 private: |
|
53 TMsvDays iDays; |
|
54 TMsvMinutes iMinutes; |
|
55 }; |
|
56 |
|
57 #endif |