equal
deleted
inserted
replaced
|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INLINED MEMBERS |
|
20 |
|
21 inline void TAknsPkgID::Set( const TUid aUid ) |
|
22 { |
|
23 iNumber = aUid.iUid; |
|
24 iTimestamp = 0; |
|
25 } |
|
26 |
|
27 inline void TAknsPkgID::Set( const TInt aTimestamp, const TInt aNumber ) |
|
28 { |
|
29 iNumber = aNumber; |
|
30 iTimestamp = aTimestamp; |
|
31 } |
|
32 |
|
33 inline void TAknsPkgID::Set( const TAknsPkgID& aID ) |
|
34 { |
|
35 iNumber = aID.iNumber; |
|
36 iTimestamp = aID.iTimestamp; |
|
37 } |
|
38 |
|
39 inline TBool TAknsPkgID::IsUid() const |
|
40 { |
|
41 return iTimestamp==0 ? ETrue : EFalse; |
|
42 } |
|
43 |
|
44 inline TUid TAknsPkgID::Uid() const |
|
45 { |
|
46 return TUid::Uid(iNumber); |
|
47 } |
|
48 |
|
49 inline TBool operator==( const TAknsPkgID& aFirst, const TAknsPkgID& aSecond ) |
|
50 { |
|
51 return (aFirst.iNumber==aSecond.iNumber)&&(aFirst.iTimestamp==aSecond.iTimestamp); |
|
52 } |
|
53 |
|
54 inline TBool operator!=( const TAknsPkgID& aFirst, const TAknsPkgID& aSecond ) |
|
55 { |
|
56 return (aFirst.iNumber!=aSecond.iNumber)||(aFirst.iTimestamp!=aSecond.iTimestamp); |
|
57 } |
|
58 |
|
59 // End of File |