messagingappbase/smsmtm/servermtm/inc/SMSSchSend.h
changeset 23 238255e8b033
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef SMS_SCH_SEND_H_
       
    17 #define SMS_SCH_SEND_H_
       
    18 
       
    19 #include <smuthdr.h>
       
    20 #include <msvschedulesend.h>
       
    21 #include <txtrich.h>
       
    22 
       
    23 //
       
    24 //
       
    25 //	CSmsScheduleSend Declaration
       
    26 //
       
    27 //
       
    28 
       
    29 class CSmsScheduleSend : public CMsvScheduleSend
       
    30 /**
       
    31 @internalComponent
       
    32 @released
       
    33 */
       
    34 	{
       
    35 public:
       
    36 	static CSmsScheduleSend* NewL(CMsvServerEntry& aServerEntry);
       
    37 
       
    38 protected:
       
    39 	CSmsScheduleSend(CMsvServerEntry& aServerEntry);
       
    40 	CMsvScheduledEntry* GetMessageL(const TMsvId aId) const;
       
    41 	};
       
    42 
       
    43 //
       
    44 //
       
    45 //	CSmsScheduledEntry Declaration
       
    46 //
       
    47 //
       
    48 
       
    49 class CSmsScheduledEntry : public CMsvScheduledEntry
       
    50 /**
       
    51 @internalComponent
       
    52 @released
       
    53 */
       
    54 	{
       
    55 public:
       
    56 	static CSmsScheduledEntry* NewL(const TMsvEntry& aEntry);
       
    57 	~CSmsScheduledEntry();
       
    58 
       
    59 	TBool CanSendToAnyRecipients(const CMsvSendErrorActions& aErrorActions, TMsvSendErrorAction& aAction);
       
    60 	TBool CanSendToAnyRecipients(const TMsvSendErrorAction& aAction);
       
    61 	void RecipientsResetRetries();
       
    62 	void RecipientsIncreaseRetries();
       
    63 	void RecipientsSetFailed();
       
    64 	TBool RecipientsAllSent() const;
       
    65 
       
    66 	void RecipientsStoreL(CMsvStore& aStore) const;
       
    67 	void RecipientsRestoreL(CMsvStore& aStore);
       
    68 
       
    69 private:
       
    70 	CSmsScheduledEntry(const TMsvEntry& aEntry);
       
    71 	void ConstructL();
       
    72 	TBool CheckRecipient(CSmsNumber& aRcpt, const TMsvSendErrorAction& aAction);
       
    73 
       
    74 	CRichText* iRichText;
       
    75 	CParaFormatLayer* iParaLayer;
       
    76 	CCharFormatLayer* iCharLayer;
       
    77 	CSmsHeader* iHeader;
       
    78 	CArrayPtrFlat<CSmsNumber>* iNumbers;
       
    79 	};
       
    80 
       
    81 
       
    82 #endif