mobilemessaging/postcard/postcardinc/PostcardOperationObserver.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2005 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 *       CPostcardOperationObserver class
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __POSTCARDOPERATIONOBSERVER_H
       
    22 #define __POSTCARDOPERATIONOBSERVER_H
       
    23 
       
    24 // INCLUDES
       
    25 
       
    26 #include <e32base.h>
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 // MACROS
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 
       
    34 // DATA TYPES
       
    35 
       
    36 // Enumeration for the operation type
       
    37 enum TPostcardOperationType
       
    38     {
       
    39     EPostcardOperationOpen,
       
    40     EPostcardOperationInsertImage,
       
    41     EPostcardOperationSave,
       
    42     EPostcardOperationSend
       
    43     };
       
    44 
       
    45 // Enumeration for the operation event
       
    46 enum TPostcardOperationEvent
       
    47 	{
       
    48 	EPostcardOperationComplete,
       
    49     EPostcardOperationError
       
    50 	};
       
    51 
       
    52 // Enumeration for the file type
       
    53 enum TPostcardFileType
       
    54     {
       
    55     EPostcardFileImage,
       
    56     EPostcardFileText,
       
    57     EPostcardFileAddress,
       
    58     EPostcardFileSmil,
       
    59     EPostcardFileUnknown,
       
    60     };
       
    61 
       
    62 // FUNCTION PROTOTYPES
       
    63 
       
    64 // CLASS DECLARATION
       
    65 
       
    66 // Interface class for operation events
       
    67 class MPostcardOperationObserver
       
    68     {
       
    69     public:
       
    70         virtual void PostcardOperationEvent(
       
    71             TPostcardOperationType aOperation,
       
    72             TPostcardOperationEvent aEvent ) = 0;
       
    73     };
       
    74 
       
    75 #endif // __POSTCARDOPERATIONOBSERVER_H