messagingappbase/obexmtms/TObexMTM/INC/AddObexAttachmentState.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: AddObexAttachmentState.h $
       
    15 // $Author: Markw $
       
    16 // $Revision: 2 $
       
    17 // $Date: 24/01/02 10:48 $
       
    18 // 
       
    19 //
       
    20 
       
    21 #ifndef __ADDOBEXATTACHMENTSTATE_H__
       
    22 #define __ADDOBEXATTACHMENTSTATE_H__
       
    23 
       
    24 #include "harness.h"        //MBaseTestState
       
    25 
       
    26 // forward declarations
       
    27 class CObexClientTest;
       
    28 
       
    29 
       
    30 //
       
    31 // CAddObexAttachmentAsEntryState
       
    32 //
       
    33 class CAddObexAttachmentAsEntryState : public CBase, public MBaseTestState
       
    34 /*
       
    35  * a state class that encapsulates the addition of a single obex
       
    36  * attachment to an existing message as a child entry
       
    37  */
       
    38 	{
       
    39 public:
       
    40 	CAddObexAttachmentAsEntryState(const TDesC& aFileName, CObexClientTest& aClientTest);
       
    41 	void StartL(TRequestStatus& aStatus);
       
    42 
       
    43 private:
       
    44 	CObexClientTest& iClientTest;
       
    45     TFileName iFileName;
       
    46 	};
       
    47 
       
    48 
       
    49 //
       
    50 // CAddObexAttachmentByNameState
       
    51 //
       
    52 class CAddObexAttachmentByNameState : public CBase, public MBaseTestState
       
    53 /*
       
    54  * a state class that encapsulates the addition of a single obex
       
    55  * attachment to an existing message by adding the attachment's name to the message body
       
    56  */
       
    57 	{
       
    58 public:
       
    59 	CAddObexAttachmentByNameState(const TDesC& aFileName, CObexClientTest& aClientTest);
       
    60 	void StartL(TRequestStatus& aStatus);
       
    61 
       
    62 private:
       
    63 	CObexClientTest& iClientTest;
       
    64     TFileName iFileName;
       
    65 	};
       
    66 
       
    67 //
       
    68 // CAddObexAttachmentByNameWithHeadersState
       
    69 //
       
    70 class CAddObexAttachmentByNameWithHeadersState : public CBase, public MBaseTestState
       
    71 /*
       
    72  * a state class that encapsulates the addition of a single obex
       
    73  * attachment to an existing message by adding the attachment's name to the message body,
       
    74  * the headers held in the client test will be added also
       
    75  */
       
    76 	{
       
    77 public:
       
    78 	CAddObexAttachmentByNameWithHeadersState(const TDesC& aFileName, CObexClientTest& aClientTest);
       
    79 	void StartL(TRequestStatus& aStatus);
       
    80 
       
    81 private:
       
    82 	CObexClientTest& iClientTest;
       
    83 	TFileName iFileName;
       
    84 //	HBufC8* iFileName;
       
    85 	};
       
    86 
       
    87 
       
    88 
       
    89 #endif // __ADDOBEXATTACHMENTSTATE_H__