phoneengine/PhoneCntFinder/ContactService/src/tphcntcontactstorestate.cpp
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Holds state of a contact store.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "tphcntcontactstorestate.h"
       
    20 
       
    21 // ======== MEMBER FUNCTIONS ========
       
    22 
       
    23 // ---------------------------------------------------------------------------
       
    24 // Constructor
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 TPhCntContactStoreState::TPhCntContactStoreState(
       
    28     TVPbkContactStoreUriPtr aContactStoreUri) : 
       
    29     iContactStoreUri( aContactStoreUri ),
       
    30     iIsAvailable( EFalse )
       
    31     {
       
    32     }
       
    33 
       
    34 // ---------------------------------------------------------------------------
       
    35 // Determines if contact store is available.
       
    36 // ---------------------------------------------------------------------------
       
    37 //
       
    38 TBool TPhCntContactStoreState::IsAvailable() const
       
    39     {
       
    40     return iIsAvailable;
       
    41     }
       
    42 
       
    43 // ---------------------------------------------------------------------------
       
    44 // Gives contact store uri.
       
    45 // ---------------------------------------------------------------------------
       
    46 //   
       
    47 const TVPbkContactStoreUriPtr& 
       
    48     TPhCntContactStoreState::ContactStoreUri() const
       
    49     {
       
    50     return iContactStoreUri;
       
    51     }
       
    52  
       
    53 // ---------------------------------------------------------------------------
       
    54 // Sets availability
       
    55 // ---------------------------------------------------------------------------
       
    56 //      
       
    57 void TPhCntContactStoreState::SetAvailability( 
       
    58     TBool aIsAvailable )
       
    59     {
       
    60     iIsAvailable = aIsAvailable;
       
    61     }