creator/engine/inc/creator_phonebookbase.h
branchGCC_SURGE
changeset 37 c20154ccf3c0
parent 35 98924d2efce9
equal deleted inserted replaced
20:ba8a586c45f1 37:c20154ccf3c0
    22 #define __CCREATORPHONEBOOKBASE_H_
    22 #define __CCREATORPHONEBOOKBASE_H_
    23 
    23 
    24 #include "creator_modulebase.h"
    24 #include "creator_modulebase.h"
    25 
    25 
    26 static const TInt KPhonebookFieldLength = 128;
    26 static const TInt KPhonebookFieldLength = 128;
    27 static const TInt KCreateRandomAmountOfGroups = -9999;
    27 static const TInt KCreateRandomAmountOfGroups = 1;
    28 
    28 
    29 class CCreatorModuleBaseParameters;
    29 class CCreatorModuleBaseParameters;
    30 
    30 
    31 class CCreatorPhonebookBase : public CBase, public MCreatorModuleBase{
    31 class CCreatorPhonebookBase : public CCreatorModuleBase
       
    32 {
       
    33 enum TCreatorPhonebookStatus{
       
    34     ECreatorPhonebookDelete = 0,
       
    35     ECreatorPhonebookStart,
       
    36     ECreatorPhonebookGetContactFields,
       
    37     ECreatorPhonebookGetPhoneNumbersCount,
       
    38     ECreatorPhonebookGetUrlsCount,
       
    39     ECreatorPhonebookGetEmailsCount,
       
    40     ECreatorPhonebookContactsAllFields,
       
    41     ECreatorPhonebookGetGroupFields,
       
    42     ECreatorPhonebookGetContactsInGroup
       
    43 };
       
    44 
    32 public:
    45 public:
    33 
    46 
    34     virtual TInt CreateContactEntryL(CCreatorModuleBaseParameters *aParameters) = 0;    
    47     virtual TInt CreateContactEntryL(CCreatorModuleBaseParameters *aParameters) = 0;    
    35     virtual TInt CreateGroupEntryL(CCreatorModuleBaseParameters *aParameters) = 0;
    48     virtual TInt CreateGroupEntryL(CCreatorModuleBaseParameters *aParameters) = 0;
    36     virtual TInt CreateSubscribedContactEntryL(CCreatorModuleBaseParameters *aParameters) = 0;
    49     virtual TInt CreateSubscribedContactEntryL(CCreatorModuleBaseParameters *aParameters) = 0;
    37     virtual TBool AskDataFromUserL(TInt aCommand, TInt& aNumberOfEntries); // from MCreatorModuleBase
    50     virtual TBool AskDataFromUserL( TInt aCommand ); // from MCreatorModuleBase
       
    51     virtual void QueryDialogClosedL(TBool aPositiveAction, TInt aUserData); //from MUIObserver
       
    52 
    38 //    virtual TBool IsActive() = 0;
    53 //    virtual TBool IsActive() = 0;
    39 //    virtual void CancelOperation() = 0;
    54 //    virtual void CancelOperation() = 0;
    40     virtual void DeleteAllGroupsL() = 0;
    55     virtual void DeleteAllGroupsL() = 0;
    41     virtual void DeleteAllGroupsCreatedByCreatorL() = 0;
    56     virtual void DeleteAllGroupsCreatedByCreatorL() = 0;
    42     
    57     
    46     TInt iNumberOfPhoneNumberFields;
    61     TInt iNumberOfPhoneNumberFields;
    47     TInt iNumberOfURLFields;
    62     TInt iNumberOfURLFields;
    48     TInt iNumberOfEmailAddressFields;
    63     TInt iNumberOfEmailAddressFields;
    49     TInt iContactsInGroup;    
    64     TInt iContactsInGroup;    
    50     TBool iDefaultFieldsSelected;
    65     TBool iDefaultFieldsSelected;
       
    66     TBool iAddAllFields;
    51 };
    67 };
    52 
    68 
    53 
    69 
    54 #endif /*__CCREATORPHONEBOOKBASE_H_*/
    70 #endif /*__CCREATORPHONEBOOKBASE_H_*/