phonebookui/Phonebook2/MapExtension/inc/cpmapcontacteditorextension.h
branchRCL_3
changeset 74 6b5524b4f673
parent 63 f4a778e096c2
child 85 38bb213f60ba
equal deleted inserted replaced
68:9da50d567e3c 74:6b5524b4f673
    20 
    20 
    21 // INCLUDE FILES
    21 // INCLUDE FILES
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 #include <MPbk2ContactEditorExtension.h>
    23 #include <MPbk2ContactEditorExtension.h>
    24 #include <MPbk2ContactEditorExtensionExtension.h>
    24 #include <MPbk2ContactEditorExtensionExtension.h>
       
    25 #include <MPbk2CommandObserver.h>
    25 #include <Pbk2FieldProperty.hrh>
    26 #include <Pbk2FieldProperty.hrh>
    26 
    27 
    27 // FORWARD DECLARATIONS
    28 // FORWARD DECLARATIONS
    28 class CEikMenuPane;
    29 class CEikMenuPane;
    29 class CVPbkContactManager;
    30 class CVPbkContactManager;
    32 class MPbk2UIField;
    33 class MPbk2UIField;
    33 class MPbk2Command;
    34 class MPbk2Command;
    34 // CLASS DECLARATION
    35 // CLASS DECLARATION
    35 class CPmapContactEditorExtension : public CBase,
    36 class CPmapContactEditorExtension : public CBase,
    36 								    public MPbk2ContactEditorExtension,
    37 								    public MPbk2ContactEditorExtension,
    37 								    public MPbk2ContactEditorExtensionExtension
    38 								    public MPbk2ContactEditorExtensionExtension,
       
    39 								    public MPbk2CommandObserver
    38     {
    40     {
    39     public:
    41     public:
    40         /**
    42         /**
    41          * Creates a new instance of this class.
    43          * Creates a new instance of this class.
    42          *
    44          *
    88                 TInt aErrorCode,
    90                 TInt aErrorCode,
    89                 TParams aParams,
    91                 TParams aParams,
    90                 TFailParams& aFailParams );
    92                 TFailParams& aFailParams );
    91         TAny* ContactEditorExtensionExtension(
    93         TAny* ContactEditorExtensionExtension(
    92                         TUid /*aExtensionUid*/ );
    94                         TUid /*aExtensionUid*/ );
       
    95         
       
    96     public: // From MPbk2CommandObserver
       
    97         void CommandFinished(
       
    98                         const MPbk2Command& aCommand );
    93 
    99 
    94     private: // Implementation
   100     private: // Implementation
    95         CPmapContactEditorExtension(
   101         CPmapContactEditorExtension(
    96                 CVPbkContactManager& aContactManager,
   102                 CVPbkContactManager& aContactManager,
    97                 MVPbkStoreContact& aContact,
   103                 MVPbkStoreContact& aContact,
   107         MVPbkStoreContact& iContact;
   113         MVPbkStoreContact& iContact;
   108         /// Ref: Contact editor control
   114         /// Ref: Contact editor control
   109         MPbk2ContactEditorControl& iEditorControl;
   115         MPbk2ContactEditorControl& iEditorControl;
   110         /// Own: Map command controller
   116         /// Own: Map command controller
   111         MPbk2Command* iCmd;
   117         MPbk2Command* iCmd;
       
   118         /// Own: Mark if Map command is finished
       
   119         TBool iMapCommandFinish;
   112 	};
   120 	};
   113 
   121 
   114 #endif // CPMAPCONTACTEDITOREXTENSION_H
   122 #endif // CPMAPCONTACTEDITOREXTENSION_H
   115 
   123 
   116 // End of File
   124 // End of File