messagingappbase/obexmtms/TObexMTM/INC/SendAsStates.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 // Copyright (c) 2002-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 // $Workfile: SendAsStates.h $
       
    15 // $Author: Simonk $
       
    16 // $Revision: 1 $
       
    17 // $Date: 28/01/02 17:02 $
       
    18 // 
       
    19 //
       
    20 
       
    21 #ifndef __OBEXSENDASSTATES_H__
       
    22 #define __OBEXSENDASSTATES_H__
       
    23 
       
    24 #include "harness.h"        //MBaseTestState
       
    25 
       
    26 //forward declarations
       
    27 
       
    28 class CObexClientTest;
       
    29 
       
    30 class CObexSendAsCreateState : public CBase, public MBaseTestState
       
    31 /*
       
    32  *  A state class, to be added to a harness, that encapsulates the creation of a SendAs
       
    33  *  object and a corresponding message
       
    34  */
       
    35     {
       
    36     public:
       
    37         CObexSendAsCreateState(CObexClientTest& aClientTest);
       
    38 	    void StartL(TRequestStatus& aStatus);
       
    39     private:
       
    40 	    CObexClientTest& iClientTest;
       
    41     };
       
    42 
       
    43 class CObexSendAsAddRecipientState : public CBase, public MBaseTestState
       
    44 /*
       
    45  *  A state class, to be added to a harness,  that encapsulates the addition of a recipient 
       
    46  *  to a message through the SendAs interface
       
    47  */
       
    48     {
       
    49     public:
       
    50         CObexSendAsAddRecipientState(const TDesC& aRecipient, CObexClientTest& aClientTest);
       
    51 	    void StartL(TRequestStatus& aStatus);
       
    52     private:
       
    53 	    CObexClientTest& iClientTest;
       
    54         TBuf<256> iRecipient;       //TODO:-Change this attribute to a HBufC or find out what the max size of this attrib is
       
    55     };
       
    56 
       
    57 class CObexSendAsAddBTRecipientState : public CBase, public MBaseTestState
       
    58 /*
       
    59  *  A state class, to be added to a harness,  that encapsulates the addition of a recipient 
       
    60  *  to a message through the SendAs interface
       
    61  */
       
    62     {
       
    63     public:
       
    64         CObexSendAsAddBTRecipientState(const TDesC& aRecipient, CObexClientTest& aClientTest);
       
    65 	    void StartL(TRequestStatus& aStatus);
       
    66 		static TUint8 GetByteFromUnicodeHexTextChar(const TUint16 *input);
       
    67     private:
       
    68 	    CObexClientTest& iClientTest;
       
    69         TBuf<3> iRecipient;       // A Bluetooth address is 6 bytes, 3 unicode chars.
       
    70     };
       
    71 
       
    72 class CObexSendAsSetSubjectState : public CBase, public MBaseTestState
       
    73 /*
       
    74  *  A state class, to be added to a harness,  that encapsulates the addition of a subject 
       
    75  *  to a message through the SendAs interface
       
    76  */
       
    77     {
       
    78     public:
       
    79         CObexSendAsSetSubjectState(const TDesC& aSubject, CObexClientTest& aClientTest);
       
    80 	    void StartL(TRequestStatus& aStatus);
       
    81     private:
       
    82 	    CObexClientTest& iClientTest;
       
    83         TBuf<256> iSubject;         //TODO:-Change this attribute to a HBufC or find out what the max size of this attrib is
       
    84     };
       
    85 
       
    86 class CObexSendAsAddAttachmentState : public CBase, public MBaseTestState
       
    87 /*
       
    88  *  A state class, to be added to a harness,  that encapsulates the addition of an attachment 
       
    89  *  to a message through the SendAs interface
       
    90  */
       
    91     {
       
    92     public:
       
    93         CObexSendAsAddAttachmentState(const TDesC& aFileName, CObexClientTest& aClientTest);
       
    94 	    void StartL(TRequestStatus& aStatus);
       
    95     private:
       
    96 	    CObexClientTest& iClientTest;
       
    97         TFileName iFileName;
       
    98     };
       
    99 	
       
   100 class CObexSendAsAbandonState : public CBase, public MBaseTestState
       
   101 /*
       
   102  *  A state class, to be added to a harness,  that encapsulates the abandonment of a
       
   103  *  message through the SendAs interface
       
   104  */
       
   105     {
       
   106     public:
       
   107         CObexSendAsAbandonState(CObexClientTest& aClientTest);
       
   108 	    void StartL(TRequestStatus& aStatus);
       
   109     private:
       
   110 	    CObexClientTest& iClientTest;
       
   111     };
       
   112 
       
   113 class CObexSendAsSaveState : public CBase, public MBaseTestState
       
   114 /*
       
   115  *  A state class, to be added to a harness,  that encapsulates the saving of a
       
   116  *  message through the SendAs interface
       
   117  */
       
   118     {
       
   119     public:
       
   120         CObexSendAsSaveState(CObexClientTest& aClientTest);
       
   121 	    void StartL(TRequestStatus& aStatus);
       
   122     private:
       
   123 	    CObexClientTest& iClientTest;
       
   124     };
       
   125 
       
   126 class CObexSendAsValidateState : public CBase, public MBaseTestState
       
   127 /*
       
   128  *  A state class, to be added to a harness,  that encapsulates the validation of a
       
   129  *  message through the SendAs interface
       
   130  */
       
   131     {
       
   132     public:
       
   133         CObexSendAsValidateState(CObexClientTest& aClientTest);
       
   134 	    void StartL(TRequestStatus& aStatus);
       
   135     private:
       
   136 	    CObexClientTest& iClientTest;
       
   137     };
       
   138 
       
   139 
       
   140 #endif //__OBEXSENDASSTATES_H__