epoc32/include/irs.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/irs.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,102 +0,0 @@
     1.4 -// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -// $Workfile: IRS.H $
    1.18 -// $Author: Stevep $
    1.19 -// $Revision: 3 $
    1.20 -// $Date: 9/11/01 15:29 $
    1.21 -// 
    1.22 -//
    1.23 -
    1.24 -
    1.25 -#if !defined(__IRS_H__)
    1.26 -#define __IRS_H__
    1.27 -
    1.28 -#include <obexservermtm.h>
    1.29 -#include <ircmtm.h> // STimeouts
    1.30 -#include <obexconstants.h>
    1.31 -
    1.32 -class CIrHeader;
    1.33 -
    1.34 -class CIrSrvMtm : public CObexSrvMtm
    1.35 -/**
    1.36 -@internalTechnology
    1.37 -@released
    1.38 -*/
    1.39 -	{
    1.40 -public:
    1.41 -
    1.42 -	/**
    1.43 -	 * NewL factory function. Calls ReleaseLibrary() if construction fails.
    1.44 -	 *
    1.45 -	 * @param aRegisteredMtmDll Registration data for MTM DLL.
    1.46 -	 * @param aEntry Context on which to operate.
    1.47 -	 * @return Pointer to a newly constructed CIrSrvMtm.
    1.48 -	 * @leave KErrXXX System-wide error codes
    1.49 -	 */
    1.50 -
    1.51 -	IMPORT_C static CIrSrvMtm* NewL(CRegisteredMtmDll& aRegisteredMtmDll, CMsvServerEntry*  aEntry);
    1.52 -	
    1.53 -	/**
    1.54 -	 * Instantiates and initiates a CIrServerSemdOperation class to begin sending the specified OBEX object
    1.55 -	 * via Infrared. Called in response to InvokeAsyncFunctionL() in the client MTM, and passes through
    1.56 -	 * all the arguments passed in to that function. Only supports aCommand==EIrMtmCmdSend
    1.57 -	 * @param aSelection Entry to operate on.
    1.58 -	 * @param aCommand Command to start. Only EIrMtmCmdSend is supported.
    1.59 -	 * @param aParameter Package buffer containing timeout, port and password info needed for the send operation.
    1.60 -	 * @param aStatus Used to notify observer of completion.
    1.61 -	 * @leave KErrNotSupported if aCommand!=EIrMtmCmdSend
    1.62 -	 * @leave KErrXXX if aCommand!= EIrMtmCmdSend
    1.63 -	 */
    1.64 -	
    1.65 -	IMPORT_C virtual void  StartCommandL (	CMsvEntrySelection& aSelection, 
    1.66 -											TInt aCommand, 
    1.67 -											const TDesC8& aParameter, 
    1.68 -											TRequestStatus& aStatus); 
    1.69 -
    1.70 -	/**
    1.71 -	 * Destructor. Deletes the header member
    1.72 -	 */
    1.73 -
    1.74 -	IMPORT_C ~CIrSrvMtm();
    1.75 -	
    1.76 -	/**
    1.77 -	 * Obtains progress information, which, if valid, results in calling Send()
    1.78 -	 */
    1.79 -	
    1.80 -	IMPORT_C void DoRunL();
    1.81 -
    1.82 -private:
    1.83 -
    1.84 -	/**
    1.85 -	 * Constructor. Calls CObexSrvMtm's constructor in initialisation list.
    1.86 -	 * @param aRegisteredMtmDll Registration data for MTM DLL.
    1.87 -	 * @param aEntry Context on which to operate.
    1.88 -	 */
    1.89 -
    1.90 -	CIrSrvMtm::CIrSrvMtm(CRegisteredMtmDll& aRegisteredMtmDll, CMsvServerEntry* aEntry);
    1.91 -	
    1.92 -	/**
    1.93 -	 * Creates a server send operation to perform the send
    1.94 -	 */
    1.95 -
    1.96 -	void SendL();
    1.97 -
    1.98 -private:
    1.99 -	CIrClientMtm::STimeouts iTimeouts; ///< Timeout structure contains connect timeout and a put timeout
   1.100 -	CIrHeader* iHeader; ///< Infrared OBEX header information
   1.101 -	TBool iFirstSendAttempt; ///< Boolean value ETrue if it is the first send attempt
   1.102 -	TObexIrProtocolInfo iProtocolInfo; ///< Protocol info to initialise the CObexClient. Non-const because the CObexClient's NewL() takes a non-const reference
   1.103 -	};
   1.104 -
   1.105 -#endif  // __IRS_H__