phonebookui/Phonebook2/Presentation/src/CPbk2StoreConfiguration.cpp
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "CPbk2StoreConfiguration.h"
       
    20 
       
    21 // Phonebook 2
       
    22 #include "CPbk2StoreConfigurationImpl.h"
       
    23 
       
    24 // Virtual Phonebook
       
    25 #include <TVPbkContactStoreUriPtr.h>
       
    26 
       
    27 // Debugging headers
       
    28 #include <Pbk2Debug.h>
       
    29 
       
    30 
       
    31 // --------------------------------------------------------------------------
       
    32 // CPbk2StoreConfiguration::CPbk2StoreConfiguration
       
    33 // --------------------------------------------------------------------------
       
    34 //
       
    35 CPbk2StoreConfiguration::CPbk2StoreConfiguration()
       
    36     {
       
    37     }
       
    38     
       
    39 // --------------------------------------------------------------------------
       
    40 // CPbk2StoreConfiguration::~CPbk2StoreConfiguration
       
    41 // --------------------------------------------------------------------------
       
    42 //
       
    43 CPbk2StoreConfiguration::~CPbk2StoreConfiguration()
       
    44     {
       
    45     PBK2_DEBUG_PRINT(PBK2_DEBUG_STRING
       
    46         ("CPbk2StoreConfiguration::~CPbk2StoreConfiguration(0x%x)"), this);
       
    47 
       
    48     delete iImplementation;
       
    49     }
       
    50     
       
    51 // --------------------------------------------------------------------------
       
    52 // CPbk2StoreConfiguration::ConstructL
       
    53 // --------------------------------------------------------------------------
       
    54 //
       
    55 void CPbk2StoreConfiguration::ConstructL()
       
    56     {
       
    57     iImplementation = CPbk2StoreConfigurationImpl::NewL();
       
    58     }
       
    59 
       
    60 // --------------------------------------------------------------------------
       
    61 // CPbk2StoreConfiguration::NewL
       
    62 // --------------------------------------------------------------------------
       
    63 //
       
    64 EXPORT_C CPbk2StoreConfiguration* CPbk2StoreConfiguration::NewL()
       
    65     {
       
    66     CPbk2StoreConfiguration* self = new(ELeave) CPbk2StoreConfiguration;
       
    67     CleanupStack::PushL(self);
       
    68     self->ConstructL();
       
    69     CleanupStack::Pop(self);
       
    70     return self;
       
    71     }
       
    72 
       
    73 // --------------------------------------------------------------------------
       
    74 // CPbk2StoreConfiguration::CurrentConfigurationL
       
    75 // --------------------------------------------------------------------------
       
    76 //
       
    77 EXPORT_C CVPbkContactStoreUriArray*
       
    78         CPbk2StoreConfiguration::CurrentConfigurationL() const
       
    79     {
       
    80     return iImplementation->CurrentConfigurationL();
       
    81     }
       
    82 
       
    83 // --------------------------------------------------------------------------
       
    84 // CPbk2StoreConfiguration::SearchStoreConfigurationL
       
    85 // --------------------------------------------------------------------------
       
    86 //
       
    87 EXPORT_C CVPbkContactStoreUriArray*
       
    88         CPbk2StoreConfiguration::SearchStoreConfigurationL()
       
    89     {
       
    90     return iImplementation->SearchStoreConfigurationL();
       
    91     }
       
    92     
       
    93 // --------------------------------------------------------------------------
       
    94 // CPbk2StoreConfiguration::SupportedStoreConfigurationL
       
    95 // --------------------------------------------------------------------------
       
    96 //
       
    97 EXPORT_C CVPbkContactStoreUriArray*
       
    98         CPbk2StoreConfiguration::SupportedStoreConfigurationL() const
       
    99     {
       
   100     return iImplementation->SupportedStoreConfigurationL();
       
   101     }
       
   102 
       
   103 // --------------------------------------------------------------------------
       
   104 // CPbk2StoreConfiguration::DefaultSavingStoreL
       
   105 // --------------------------------------------------------------------------
       
   106 //
       
   107 EXPORT_C TVPbkContactStoreUriPtr
       
   108         CPbk2StoreConfiguration::DefaultSavingStoreL() const
       
   109     {
       
   110     return iImplementation->DefaultSavingStoreL();
       
   111     }
       
   112 
       
   113 // --------------------------------------------------------------------------
       
   114 // CPbk2StoreConfiguration::AddContactStoreURIL
       
   115 // --------------------------------------------------------------------------
       
   116 //
       
   117 EXPORT_C void CPbk2StoreConfiguration::AddContactStoreURIL
       
   118         (TVPbkContactStoreUriPtr aURI)
       
   119     {
       
   120     iImplementation->AddContactStoreURIL( aURI );
       
   121     }
       
   122 
       
   123 // --------------------------------------------------------------------------
       
   124 // CPbk2StoreConfiguration::RemoveContactStoreURIL
       
   125 // --------------------------------------------------------------------------
       
   126 //
       
   127 EXPORT_C void CPbk2StoreConfiguration::RemoveContactStoreURIL
       
   128         (TVPbkContactStoreUriPtr aURI)
       
   129     {
       
   130     iImplementation->RemoveContactStoreURIL( aURI );
       
   131     }
       
   132 
       
   133 // --------------------------------------------------------------------------
       
   134 // CPbk2StoreConfiguration::AddObserverL
       
   135 // --------------------------------------------------------------------------
       
   136 //
       
   137 EXPORT_C void CPbk2StoreConfiguration::AddObserverL
       
   138         ( MPbk2StoreConfigurationObserver& aObserver )
       
   139     {
       
   140     iImplementation->AddObserverL( aObserver );
       
   141     }
       
   142     
       
   143 // --------------------------------------------------------------------------
       
   144 // CPbk2StoreConfiguration::RemoveObserver
       
   145 // --------------------------------------------------------------------------
       
   146 //
       
   147 EXPORT_C void CPbk2StoreConfiguration::RemoveObserver
       
   148         ( MPbk2StoreConfigurationObserver& aObserver )
       
   149     {
       
   150     iImplementation->RemoveObserver( aObserver );
       
   151     }
       
   152 
       
   153 // --------------------------------------------------------------------------
       
   154 // CPbk2StoreConfiguration::AddDefaultSavingStoreObserverL
       
   155 // --------------------------------------------------------------------------
       
   156 //
       
   157 EXPORT_C void CPbk2StoreConfiguration::AddDefaultSavingStoreObserverL
       
   158         ( MPbk2DefaultSavingStoreObserver& aObserver )
       
   159     {
       
   160     iImplementation->AddDefaultSavingStoreObserverL( aObserver );
       
   161     }
       
   162 
       
   163 // --------------------------------------------------------------------------
       
   164 // CPbk2StoreConfiguration::RemoveDefaultSavingStoreObserver
       
   165 // --------------------------------------------------------------------------
       
   166 //
       
   167 EXPORT_C void CPbk2StoreConfiguration::RemoveDefaultSavingStoreObserver
       
   168         ( MPbk2DefaultSavingStoreObserver& aObserver )
       
   169     {
       
   170     iImplementation->RemoveDefaultSavingStoreObserver( aObserver );
       
   171     }
       
   172 
       
   173 // --------------------------------------------------------------------------
       
   174 // CPbk2StoreConfiguration::AddSupportedContactStoreURIL
       
   175 // --------------------------------------------------------------------------
       
   176 //
       
   177 EXPORT_C void CPbk2StoreConfiguration::AddSupportedContactStoreURIL
       
   178         ( TVPbkContactStoreUriPtr aURI )
       
   179     {
       
   180     iImplementation->AddSupportedContactStoreURIL( aURI );
       
   181     }
       
   182     
       
   183 // --------------------------------------------------------------------------
       
   184 // CPbk2StoreConfiguration::RemoveSupportedContactStoreURIL
       
   185 // --------------------------------------------------------------------------
       
   186 //
       
   187 EXPORT_C void CPbk2StoreConfiguration::RemoveSupportedContactStoreURIL
       
   188         ( TVPbkContactStoreUriPtr aURI )
       
   189     {
       
   190     iImplementation->RemoveSupportedContactStoreURIL( aURI );
       
   191     }
       
   192             
       
   193 // End of File