phonebookengines/VirtualPhonebook/VPbkSimStoreImpl/inc/COwnNumberWriteCmd.h
branchRCL_3
changeset 63 f4a778e096c2
parent 0 e686773b3f54
equal deleted inserted replaced
62:5b6f26637ad3 63: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:  A write command for writing own number contacts
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef VPBKSIMSTOREIMPL_COWNNUMBERWRITECMD_H
       
    21 #define VPBKSIMSTOREIMPL_COWNNUMBERWRITECMD_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "CWriteCmdBase.h"
       
    25 #include <etelmm.h>
       
    26 
       
    27 namespace VPbkSimStoreImpl {
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  A write command for writing own number contacts
       
    33 *
       
    34 */
       
    35 NONSHARABLE_CLASS( COwnNumberWriteCmd ) : 
       
    36         public CBasicWriteCmd<RMobileONStore::TMobileONEntryV1>
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39         
       
    40         /**
       
    41         * Two-phased constructor.
       
    42         *
       
    43         * @param the store for making the ETel request
       
    44         * @param aData the contact data in ETel format
       
    45         * @param aSimIndex the index to write the contact or KFirstFreeSimIndex
       
    46         *       ETel updates this index if it's KFirstFreeSimIndex
       
    47         * @param aObserver an observer to notify after command is done
       
    48         * @return a new instance of this class
       
    49         */
       
    50         static COwnNumberWriteCmd* NewL( CStoreBase& aStore, 
       
    51             const TDesC8& aData, TInt& aSimIndex, 
       
    52             MVPbkSimContactObserver& aObserver );
       
    53         
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         ~COwnNumberWriteCmd();
       
    58 
       
    59     private:
       
    60 
       
    61         /**
       
    62         * C++ constructor.
       
    63         */
       
    64         COwnNumberWriteCmd( CStoreBase& aStore, TInt& aSimIndex, 
       
    65             MVPbkSimContactObserver& aObserver );
       
    66 
       
    67         /**
       
    68         * By default Symbian 2nd phase constructor is private.
       
    69         */
       
    70         void ConstructL( const TDesC8& aData );
       
    71     };
       
    72 } // namespace VPbkSimStoreImpl
       
    73 #endif      // VPBKSIMSTOREIMPL_COWNNUMBERWRITECMD_H
       
    74             
       
    75 // End of File