richcallsettingsengine/rcse2/src/stubs/s_crcsesccpsettingregistry.cpp
branchRCL_3
changeset 21 f742655b05bf
parent 20 65a3ef1d5bd0
child 22 d38647835c2e
equal deleted inserted replaced
20:65a3ef1d5bd0 21:f742655b05bf
     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:  Stores and loads CRCSESCCPEntry to/from database.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "crcsesccpsettingregistry.h"
       
    22 #include "crcsesccpentry.h"
       
    23 #include "rcseregistrybase.h"
       
    24 #include "rcsepanic.h"
       
    25 #include "rcseconstants.h"
       
    26 #include "rcselogger.h"
       
    27 
       
    28 
       
    29 // ============================ MEMBER FUNCTIONS ===============================
       
    30 
       
    31 // -----------------------------------------------------------------------------
       
    32 // CRCSESCCPSettingRegistry::CRCSESCCPSettingRegistry
       
    33 // C++ default constructor can NOT contain any code, that
       
    34 // might leave.
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 CRCSESCCPSettingRegistry::CRCSESCCPSettingRegistry()
       
    38     : CRCSERegistryBase( ESCCPProfile )
       
    39     {
       
    40     }
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // CRCSESCCPSettingRegistry::ConstructL
       
    44 // Symbian 2nd phase constructor can leave.
       
    45 // -----------------------------------------------------------------------------
       
    46 //
       
    47 void CRCSESCCPSettingRegistry::ConstructL()
       
    48     {
       
    49     RCSELOGSTRING( "CRCSESCCPSettingRegistry::ConstructL() - STUB impl" );
       
    50     BaseConstructL();
       
    51     }
       
    52     
       
    53 // -----------------------------------------------------------------------------
       
    54 // CRCSESCCPSettingRegistry::NewL
       
    55 // Two-phased constructor.
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 EXPORT_C CRCSESCCPSettingRegistry* CRCSESCCPSettingRegistry::NewL()
       
    59     {
       
    60     CRCSESCCPSettingRegistry* self = CRCSESCCPSettingRegistry::NewLC();
       
    61     CleanupStack::Pop( self );
       
    62     return self;
       
    63     }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CRCSESCCPSettingRegistry::NewLC
       
    67 // Two-phased constructor.
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 EXPORT_C CRCSESCCPSettingRegistry* CRCSESCCPSettingRegistry::NewLC()
       
    71     {
       
    72     CRCSESCCPSettingRegistry* self = new( ELeave ) CRCSESCCPSettingRegistry;
       
    73     CleanupStack::PushL( self );
       
    74     self->ConstructL();
       
    75     return self;
       
    76     }
       
    77 
       
    78     
       
    79 // -----------------------------------------------------------------------------
       
    80 // Destructor
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 EXPORT_C CRCSESCCPSettingRegistry::~CRCSESCCPSettingRegistry()
       
    84     {
       
    85     }
       
    86     
       
    87 // -----------------------------------------------------------------------------
       
    88 // CRCSESCCPSettingRegistry::FindL
       
    89 // Creates sql query and sets the data to aFoundQuery.
       
    90 // (other items were commented in a header).
       
    91 // -----------------------------------------------------------------------------
       
    92 //
       
    93 EXPORT_C void CRCSESCCPSettingRegistry::FindL( 
       
    94     TUint32 /*aSCCPSettingId*/, 
       
    95     CRCSESCCPEntry& /*aFoundEntry*/ )
       
    96     {
       
    97     RCSELOGSTRING( "CRCSESCCPSettingRegistry::FindL() - KErrNotSupported" );
       
    98     User::Leave( KErrNotSupported );
       
    99     }
       
   100 
       
   101 // -----------------------------------------------------------------------------
       
   102 // CRCSESCCPSettingRegistry::AddL
       
   103 // Inserts aProfile to database.
       
   104 // (other items were commented in a header).
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 EXPORT_C TUint32 CRCSESCCPSettingRegistry::AddL( 
       
   108     const CRCSESCCPEntry& /*aNewEntry*/ )
       
   109     {
       
   110     RCSELOGSTRING( "CRCSESCCPSettingRegistry::AddL() - KErrNotSupported" );
       
   111     User::Leave( KErrNotSupported );
       
   112     return 0;//sccpid;
       
   113     }
       
   114 
       
   115 // -----------------------------------------------------------------------------
       
   116 // CRCSESCCPSettingRegistry::DeleteL
       
   117 // Deletes a profile entry which profile id is aId.
       
   118 // (other items were commented in a header).
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 EXPORT_C void CRCSESCCPSettingRegistry::DeleteL( TUint32 /*aId*/ )
       
   122     {
       
   123     RCSELOGSTRING( "CRCSESCCPSettingRegistry::DeleteL() - KErrNotSupported" );
       
   124     User::Leave( KErrNotSupported );
       
   125     }
       
   126 
       
   127 // -----------------------------------------------------------------------------
       
   128 // CRCSESCCPSettingRegistry::UpdateL
       
   129 // Updates profile entry, which profile identifier is aId.
       
   130 // (other items were commented in a header).
       
   131 // -----------------------------------------------------------------------------
       
   132 //
       
   133 EXPORT_C void CRCSESCCPSettingRegistry::UpdateL(
       
   134     TUint32 /*aId*/,
       
   135     const CRCSESCCPEntry& /*aUpdateData*/ )
       
   136     {
       
   137     RCSELOGSTRING( "CRCSESCCPSettingRegistry::UpdateL() - KErrNotSupported" );
       
   138     User::Leave( KErrNotSupported );
       
   139     }
       
   140 
       
   141 // -----------------------------------------------------------------------------
       
   142 // CRCSESCCPSettingRegistry::GetDefaultProfile
       
   143 // Sets a default profile.
       
   144 // (other items were commented in a header).
       
   145 // -----------------------------------------------------------------------------
       
   146 //
       
   147 EXPORT_C void CRCSESCCPSettingRegistry::GetDefaultProfile(
       
   148     CRCSESCCPEntry& aDefaultProfile ) const
       
   149     {
       
   150     aDefaultProfile.ResetDefaultValues();
       
   151     }
       
   152 
       
   153 // -----------------------------------------------------------------------------
       
   154 // CRCSESCCPSettingRegistry::GetAllIdsL
       
   155 // Gets all profile identifiers from data base.
       
   156 // (other items were commented in a header).
       
   157 // -----------------------------------------------------------------------------
       
   158 //
       
   159 EXPORT_C void CRCSESCCPSettingRegistry::GetAllIdsL( 
       
   160     RArray<TUint32>& /*aAllIds*/ )
       
   161     {
       
   162     RCSELOGSTRING( "CRCSESCCPSettingRegistry::GetAllIdsL() - No impl !" );
       
   163     }
       
   164 
       
   165 
       
   166 //  End of File