dependencies/AknsPkgID.inl
author Kir?ly J?zsef <fonix232@gmail.com>
Mon, 24 May 2010 17:34:06 +0200
branchv5backport
changeset 77 a5edac421fbd
parent 39 4e8bbb15b77a
permissions -rw-r--r--
Added missing libraries, except scppnwdl.dll Source: Symbian^3 PDK 3.0.i
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
39
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
     1
/*
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
     2
* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
     3
* All rights reserved.
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
     4
* This component and the accompanying materials are made available
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
     6
* which accompanies this distribution, and is available
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
     8
*
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
     9
* Initial Contributors:
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    11
*
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    12
* Contributors:
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    13
*
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    14
* Description:  ?Description
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    15
*
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    16
*/
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    17
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    18
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    19
// INLINED MEMBERS
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    20
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    21
inline void TAknsPkgID::Set( const TUid aUid )
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    22
    {
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    23
    iNumber = aUid.iUid;
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    24
    iTimestamp = 0;
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    25
    }
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    26
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    27
inline void TAknsPkgID::Set( const TInt aTimestamp, const TInt aNumber )
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    28
    {
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    29
    iNumber = aNumber;
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    30
    iTimestamp = aTimestamp;
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    31
    }
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    32
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    33
inline void TAknsPkgID::Set( const TAknsPkgID& aID )
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    34
    {
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    35
    iNumber = aID.iNumber;
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    36
    iTimestamp = aID.iTimestamp;
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    37
    }
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    38
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    39
inline TBool TAknsPkgID::IsUid() const
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    40
    {
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    41
    return iTimestamp==0 ? ETrue : EFalse;
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    42
    }
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    43
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    44
inline TUid TAknsPkgID::Uid() const
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    45
    {
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    46
    return TUid::Uid(iNumber);
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    47
    }
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    48
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    49
inline TBool operator==( const TAknsPkgID& aFirst, const TAknsPkgID& aSecond )
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    50
    { 
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    51
    return (aFirst.iNumber==aSecond.iNumber)&&(aFirst.iTimestamp==aSecond.iTimestamp); 
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    52
    }
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    53
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    54
inline TBool operator!=( const TAknsPkgID& aFirst, const TAknsPkgID& aSecond )
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    55
    { 
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    56
    return (aFirst.iNumber!=aSecond.iNumber)||(aFirst.iTimestamp!=aSecond.iTimestamp); 
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    57
    }
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    58
4e8bbb15b77a added files required to compile homescreen
kashif.sayed
parents:
diff changeset
    59
//  End of File