phonebookengines/VirtualPhonebook/VPbkSimStoreImpl/src/CFdnStore.cpp
branchRCL_3
changeset 20 f4a778e096c2
parent 0 e686773b3f54
equal deleted inserted replaced
19:5b6f26637ad3 20:f4a778e096c2
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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:  An FDN store
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "CFdnStore.h"
       
    22 
       
    23 #include <VPbkDebug.h>
       
    24 
       
    25 namespace VPbkSimStoreImpl {
       
    26 
       
    27 // ============================ MEMBER FUNCTIONS ===============================
       
    28 
       
    29 // -----------------------------------------------------------------------------
       
    30 // CFdnStore::CFdnStore
       
    31 // C++ default constructor can NOT contain any code, that
       
    32 // might leave.
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 CFdnStore::CFdnStore( TStoreParams& aParams )
       
    36 :   CCustomStore( aParams )
       
    37     {
       
    38     }
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // CFdnStore::ConstructL
       
    42 // Symbian 2nd phase constructor can leave.
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 void CFdnStore::ConstructL()
       
    46     {
       
    47     CCustomStore::ConstructL();
       
    48     }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // CFdnStore::NewL
       
    52 // Two-phased constructor.
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 CFdnStore* CFdnStore::NewL( TStoreParams& aParams )
       
    56     {
       
    57     CFdnStore* self = new( ELeave ) CFdnStore( aParams );
       
    58     CleanupStack::PushL( self );
       
    59     self->ConstructL();
       
    60     CleanupStack::Pop( self );
       
    61     return self;
       
    62     }
       
    63     
       
    64 // Destructor
       
    65 CFdnStore::~CFdnStore()
       
    66     {
       
    67     VPBK_DEBUG_PRINT(VPBK_DEBUG_STRING(
       
    68         "VPbkSimStoreImpl: CFdnStore::~CFdnStore"));
       
    69     CancelRequests();
       
    70     }
       
    71 
       
    72 // -----------------------------------------------------------------------------
       
    73 // CFdnStore::ETelName
       
    74 // -----------------------------------------------------------------------------
       
    75 //
       
    76 const TDesC& CFdnStore::ETelName() const
       
    77     {
       
    78     return KETelIccFdnPhoneBook;
       
    79     }
       
    80 
       
    81 // ----------------------------------------------------------------------------
       
    82 // CFdnStore::CompleteSATRefresh
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 void CFdnStore::CompleteSATRefresh( 
       
    86         MSimRefreshCompletion& aSimRefreshCompletion )
       
    87     {
       
    88     // It's assumed that fixed dialling store init reads only SAT defined EFs
       
    89     aSimRefreshCompletion.SatRefreshCompleted( *this, EFalse );
       
    90     }
       
    91 
       
    92 // ----------------------------------------------------------------------------
       
    93 // CFdnStore::ElementaryFiles
       
    94 // -----------------------------------------------------------------------------
       
    95 //
       
    96 TUint32 CFdnStore::ElementaryFiles()
       
    97     {
       
    98     return KFDNRefresh | KFDNExtRefresh | KSimReset | KSimInit |
       
    99     		KSimInitFullFileChangeNotification | KUsimApplicationReset |
       
   100     		K3GSessionReset;
       
   101     }
       
   102 } // namespace VPbkSimStoreImpl 
       
   103 //  End of File