usbengines/usbwatcher/inc/cusbwatchersession.h
branchRCL_3
changeset 22 5b2a402e96ac
parent 0 1e05558e2206
equal deleted inserted replaced
21:e9b96e674847 22:5b2a402e96ac
     1 /*
     1 /*
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    38     // CSession
    38     // CSession
    39     virtual void ServiceL(const RMessage2& aMessage);
    39     virtual void ServiceL(const RMessage2& aMessage);
    40         
    40         
    41     virtual void Notify(TInt iPersonalityId, TInt aStatus); 
    41     virtual void Notify(TInt iPersonalityId, TInt aStatus); 
    42 
    42 
    43     /**
       
    44      * Check if ask on connection mode query is suppressed in this session.
       
    45      * From MUsbWatcherNotify
       
    46      */
       
    47     virtual TBool IsAskOnConnectionSuppressed();
       
    48     
       
    49 protected:
    43 protected:
    50     CUsbWatcherSession(CUsbWatcherServer* aServer);
    44     CUsbWatcherSession(CUsbWatcherServer* aServer);
    51     void ConstructL();
    45     void ConstructL();
    52 
    46 
    53     void DispatchMessageL(const RMessage2& aMessage);
    47     void DispatchMessageL(const RMessage2& aMessage);
    64     TInt CancelSetPreviousPersonality(const RMessage2& aMessage, 
    58     TInt CancelSetPreviousPersonality(const RMessage2& aMessage, 
    65             TBool& aComplete);
    59             TBool& aComplete);
    66     TInt SetPreviousPersonalityOnDisconnect(const RMessage2& aMessage, 
    60     TInt SetPreviousPersonalityOnDisconnect(const RMessage2& aMessage, 
    67             TBool& aComplete);
    61             TBool& aComplete);
    68 
    62 
    69     /**
       
    70      * Prevent showing ask on connection mode query in this session.
       
    71      * This affects to the next cable connections. The currently shown
       
    72      * mode query is not closed.
       
    73      * aSuppress ETrue prevents showing the mode query.
       
    74      */
       
    75     void SetAskOnConnectionSuppression(TBool aSuppress);
       
    76 
       
    77     CUsbWatcherServer* iUsbWatcherServer;
    63     CUsbWatcherServer* iUsbWatcherServer;
    78     RMessage2 iSetPersonalityMessage;
    64     RMessage2 iSetPersonalityMessage;
    79     RMessage2 iCancelSetPersonalityMessage;
    65     RMessage2 iCancelSetPersonalityMessage;
    80     RMessage2 iSetPreviousPersonalityMessage;
    66     RMessage2 iSetPreviousPersonalityMessage;
    81     RMessage2 iCancelSetPreviousPersonalityMessage;
    67     RMessage2 iCancelSetPreviousPersonalityMessage;
    82     TBool iSetPersonalityOutstanding;
    68     TBool iSetPersonalityOutstanding;
    83     TBool iCancelSetPersonalityOutstanding;
    69     TBool iCancelSetPersonalityOutstanding;
    84 
    70 
    85     TBool iSetPreviousPersonalityOutstanding;
    71     TBool iSetPreviousPersonalityOutstanding;
    86     TBool iCancelSetPreviousPersonalityOutstanding;
    72     TBool iCancelSetPreviousPersonalityOutstanding;
    87     TBool iSuppressAskOnConnection; // Prevent ask on connection mode query 
       
    88     };
    73     };
    89 
    74 
    90 #endif
    75 #endif
    91 
    76 
    92 // End of file
    77 // End of file