creator/engine/inc/creator_message.h
branchGCC_SURGE
changeset 37 c20154ccf3c0
parent 23 c9bf25a20c9f
equal deleted inserted replaced
20:ba8a586c45f1 37:c20154ccf3c0
    87 private:
    87 private:
    88     HBufC* iPhoneNumber;
    88     HBufC* iPhoneNumber;
    89     HBufC* iEmailAddress;
    89     HBufC* iEmailAddress;
    90 };
    90 };
    91 
    91 
    92 class CCreatorMessages : public CBase, public MCreatorModuleBase, public MMsvSessionObserver
    92 class CCreatorMessages : public CCreatorModuleBase, public MMsvSessionObserver
    93     {
    93     {
       
    94 enum TCreatorMessagesStatus{
       
    95     ECreatorMessagesDelete = 0,
       
    96     ECreatorMessagesStart, 
       
    97     ECreatorMessagesMessageType,
       
    98     ECreatorMessagesFolderType,
       
    99     ECreatorMessagesMessageStatus, 
       
   100     ECreatorMessagesCharsInBody,
       
   101     ECreatorMessagesAttachment,
       
   102 };
       
   103 
    94 public: 
   104 public: 
    95     static CCreatorMessages* NewL(CCreatorEngine* aEngine);
   105     static CCreatorMessages* NewL(CCreatorEngine* aEngine);
    96     static CCreatorMessages* NewLC(CCreatorEngine* aEngine);
   106     static CCreatorMessages* NewLC(CCreatorEngine* aEngine);
    97     ~CCreatorMessages();
   107     ~CCreatorMessages();
    98 
   108 
   119                                 const RArray<TLinkIdParam>& aLinkIds, 
   129                                 const RArray<TLinkIdParam>& aLinkIds, 
   120                                 TBool aUseEmailAddress,
   130                                 TBool aUseEmailAddress,
   121                                 TInt aNumOfExistingAddresses );
   131                                 TInt aNumOfExistingAddresses );
   122     
   132     
   123     void GetAllRecipientsL(RPointerArray<HBufC>& aRecipientArray, const CMessagesParameters& aParameters, TBool aUseEmailAddress );
   133     void GetAllRecipientsL(RPointerArray<HBufC>& aRecipientArray, const CMessagesParameters& aParameters, TBool aUseEmailAddress );
   124     void SetSenderToEntryDetails(TMsvEntry& aMsgEntry, const CMessagesParameters& aParameters, TBool aUseEmailAddress);
   134     void SetSenderToEntryDetailsL(TMsvEntry& aMsgEntry, const CMessagesParameters& aParameters, TBool aUseEmailAddress);
   125     void SetRecipientToEntryDetails(TMsvEntry& aMsgEntry, const CMessagesParameters& aParameters, TBool aUseEmailAddress);
   135     void SetRecipientToEntryDetailsL(TMsvEntry& aMsgEntry, const CMessagesParameters& aParameters, TBool aUseEmailAddress);
   126     void AddSenderToMtmAddresseeL(CBaseMtm& aMtm, const CMessagesParameters& aParameters, TBool aUseEmailAddress );
   136     void AddSenderToMtmAddresseeL(CBaseMtm& aMtm, const CMessagesParameters& aParameters, TBool aUseEmailAddress );
   127     void AddMtmSenderL(CMmsClientMtm& aMtm, const CMessagesParameters& aParameters, TBool aUseEmailAddress );
   137     void AddMtmSenderL(CMmsClientMtm& aMtm, const CMessagesParameters& aParameters, TBool aUseEmailAddress );
   128     void GetSendersL(RPointerArray<HBufC>& aSenderArray, const CMessagesParameters& aParameters, TBool aUseEmailAddress, TInt aMaxNum );
   138     void GetSendersL(RPointerArray<HBufC>& aSenderArray, const CMessagesParameters& aParameters, TBool aUseEmailAddress, TInt aMaxNum );
   129     void DeleteAllMessagesL( TBool aOnlyCreatedWithCreator );
   139     void DeleteAllMessagesL( TBool aOnlyCreatedWithCreator );
   130     void DeleteAllFromFolderL( const TMsvId aContext, CMsvSession* aSession, CSmsClientMtm* aClientMtm, TBool aOnlyCreatedWithCreator = EFalse );
   140     void DeleteAllFromFolderL( const TMsvId aContext, CMsvSession* aSession, CSmsClientMtm* aClientMtm, TBool aOnlyCreatedWithCreator = EFalse );
   131     
   141     
   132 public:
   142 public:
   133     TBool AskDataFromUserL(TInt aCommand, TInt& aNumberOfEntries); // from MCreatorModuleBase
   143     TBool AskDataFromUserL( TInt aCommand ); // from MCreatorModuleBase
   134 
   144     void QueryDialogClosedL(TBool aPositiveAction, TInt aUserData); //from MUIObserver
       
   145     
   135     TInt CreateMessageEntryL(CMessagesParameters *aParameters, TBool aTakeUserGivenParameters=EFalse);    
   146     TInt CreateMessageEntryL(CMessagesParameters *aParameters, TBool aTakeUserGivenParameters=EFalse);    
   136     TInt CreateRandomMessageEntryL(TInt aCommand);
   147     TInt CreateRandomMessageEntryL(TInt aCommand);
   137     void DeleteAllL();
   148     void DeleteAllL();
   138     void DeleteAllCreatedByCreatorL();
   149     void DeleteAllCreatedByCreatorL();
   139 
   150