phonebookengines/VirtualPhonebook/inc/CVPbkEmptySingleContactOperation.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Virtual Phonebook Empty single contact operation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CVPBKEMPTYSINGLECONTACTOPERATION_H
       
    20 #define CVPBKEMPTYSINGLECONTACTOPERATION_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <MVPbkContactOperation.h>
       
    24 #include <e32base.h>
       
    25 
       
    26 class MVPbkSingleContactOperationObserver;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30  * Virtual Phonebook Empty operation.
       
    31  */
       
    32 NONSHARABLE_CLASS( CVPbkEmptySingleContactOperation ) : 
       
    33         public CActive,
       
    34 		public MVPbkContactOperation
       
    35     {
       
    36     public: // Construction & destruction
       
    37         static CVPbkEmptySingleContactOperation* 
       
    38             NewL( MVPbkSingleContactOperationObserver& aObserver, TInt aErrorCode );
       
    39         CVPbkEmptySingleContactOperation();
       
    40 
       
    41     public: // From MVPbkContactOperation
       
    42         void StartL();
       
    43         void Cancel();
       
    44 
       
    45     private: // From CActive
       
    46         void RunL();
       
    47         void DoCancel();
       
    48 
       
    49     private: // Implementation
       
    50         CVPbkEmptySingleContactOperation(
       
    51             MVPbkSingleContactOperationObserver& aObserver, 
       
    52             TInt aErrorCode );
       
    53         void IssueRequest();
       
    54         ~CVPbkEmptySingleContactOperation();
       
    55 
       
    56     private: // Data
       
    57         // Ref: Operation observer
       
    58         MVPbkSingleContactOperationObserver& iObserver;
       
    59         // Own: Error code to complete single contact operation
       
    60         TInt iErrorCode;
       
    61     };
       
    62 
       
    63 #endif // CVPBKEMPTYSINGLECONTACTOPERATION_H
       
    64 //End of file
       
    65