PECengine/PresenceManager2/SrcAttribute/CPEngTrackedPresenceIDEntryLookUp.cpp
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Tracked Presence ID lookup implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "CPEngTrackedPresenceIDEntryLookUp.h"
       
    20 
       
    21 #include <CPEngTrackedPresenceID2.h>
       
    22 #include <E32Std.h>
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 // ============================ MEMBER FUNCTIONS ===============================
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // CPEngTrackedPresenceIDEntryLookUp::NewL()
       
    32 // Two-phased constructor.
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 CPEngTrackedPresenceIDEntryLookUp* CPEngTrackedPresenceIDEntryLookUp::NewL()
       
    36     {
       
    37     CPEngTrackedPresenceIDEntryLookUp* self = new ( ELeave )
       
    38     CPEngTrackedPresenceIDEntryLookUp;
       
    39     return self;
       
    40     }
       
    41 
       
    42 
       
    43 // Destructor
       
    44 CPEngTrackedPresenceIDEntryLookUp::~CPEngTrackedPresenceIDEntryLookUp()
       
    45     {
       
    46     }
       
    47 
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // CPEngTrackedPresenceIDEntryLookUp::CPEngTrackedPresenceIDEntryLookUp
       
    51 // C++ default constructor can NOT contain any code, that
       
    52 // might leave.
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 CPEngTrackedPresenceIDEntryLookUp::CPEngTrackedPresenceIDEntryLookUp()
       
    56         : iLookupKey( NULL, 0 )
       
    57     {
       
    58     }
       
    59 
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // CPEngTrackedPresenceIDEntryLookUp::PresenceID()
       
    63 // Overridden Presence ID accessor to return lookup data
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 TPtrC CPEngTrackedPresenceIDEntryLookUp::PresenceID() const
       
    67     {
       
    68     return iLookupKey;
       
    69     }
       
    70 
       
    71 
       
    72 // -----------------------------------------------------------------------------
       
    73 // CPEngTrackedPresenceIDEntryLookUp::SetLookupKey()
       
    74 // -----------------------------------------------------------------------------
       
    75 //
       
    76 void CPEngTrackedPresenceIDEntryLookUp::SetLookupKey( const TDesC& aPresenceID )
       
    77     {
       
    78     iLookupKey.Set( aPresenceID );
       
    79     }
       
    80 
       
    81 
       
    82 // -----------------------------------------------------------------------------
       
    83 // CPEngTrackedPresenceIDEntryLookUp::Reset()
       
    84 // -----------------------------------------------------------------------------
       
    85 //
       
    86 void CPEngTrackedPresenceIDEntryLookUp::Reset()
       
    87     {
       
    88     iLookupKey.Set( NULL, 0 );
       
    89     }
       
    90 
       
    91 
       
    92 
       
    93 //  End of File
       
    94 
       
    95 
       
    96 
       
    97 
       
    98 
       
    99 
       
   100 
       
   101