mtpfws/mtpfw/daemon/server/inc/cmtpserversession.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-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 /**
       
    17  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 #include "cmtpserver.h"
       
    24 #include "mtpclientserver.h"
       
    25 #include "mtpdebug.h"
       
    26 #include "rmtpframework.h"
       
    27 
       
    28 /**
       
    29 Implements a single server side instance of an MTP Client API session. This 
       
    30 API is implemented as a standard Symbian OS client/server interface. 
       
    31 @internalTechnology
       
    32 */
       
    33 class CMTPServerSession : public CSession2
       
    34     {
       
    35 public:
       
    36 
       
    37     CMTPServerSession();
       
    38     ~CMTPServerSession();
       
    39     
       
    40 public: // From CSession2
       
    41 
       
    42     void CreateL();  
       
    43     void ServiceL(const RMessage2& aMessage);
       
    44 
       
    45 private:
       
    46     
       
    47     void DoStartTransportL(const RMessage2& aMessage);
       
    48     void DoStopTransport(const RMessage2& aMessage);
       
    49     void DoIsAvailableL(const RMessage2& aMessage);
       
    50     TBool CheckIsAvailableL(TUid aNewUID,TUid aCurUID);
       
    51     TBool CheckIsBlueToothTransport(TUid aNewUid);
       
    52     
       
    53 private:
       
    54 
       
    55     /**
       
    56     FLOGGER debug trace member variable.
       
    57     */
       
    58     __FLOG_DECLARATION_MEMBER_MUTABLE;
       
    59     
       
    60     /**
       
    61     The MTP framework singletons.
       
    62     */
       
    63     RMTPFramework iSingletons;
       
    64     };