irda/irdastack/irtranp/SCONCONC.H
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 1997-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 SCONCONCOMMAND_H
       
    17 #define SCONCONCOMMAND_H
       
    18 
       
    19 class IrTranpUtil;
       
    20 
       
    21 /*
       
    22  * Name:		SCONconCommand
       
    23  *
       
    24  * Description:	Connection confirmed command
       
    25  *
       
    26  */
       
    27 
       
    28 NONSHARABLE_CLASS(SCONconCommand) : public AbstractCommand
       
    29 {
       
    30 private:
       
    31 	SCONconCommand();
       
    32 	// Buffer to hold this packet
       
    33 	TBuf8<255> m_oData;
       
    34 	// Primary Machine ID
       
    35 	TBufC8<8> m_PMID;
       
    36 	// Secondary Machine ID
       
    37 	TBufC8<8> m_SMID;
       
    38 	// Maximum size of the PDU
       
    39 	TUint8 m_PDU;
       
    40 
       
    41 public:
       
    42 	SCONconCommand(CComReadWrite* aComReadWrite);
       
    43 	~SCONconCommand();
       
    44 	void DoIt();
       
    45 	void GetReply();
       
    46 	TDesC8& GetData(); // From Abstract Command
       
    47 
       
    48 	void SetPMID(TPtr8);
       
    49 	void SetSMID(TPtr8);
       
    50 	void SetPDU(TUint8);
       
    51 
       
    52 	void Create();
       
    53 };
       
    54 
       
    55 #endif //SCONCONCOMMAND_H