usbengines/usbwatcher/inc/cusbwatchersession.h
branchRCL_3
changeset 92 dde4619868dc
parent 77 5b2a402e96ac
equal deleted inserted replaced
86:703a2b94c06c 92:dde4619868dc
     1 /*
     1 /*
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2009 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     
    43 protected:
    49 protected:
    44     CUsbWatcherSession(CUsbWatcherServer* aServer);
    50     CUsbWatcherSession(CUsbWatcherServer* aServer);
    45     void ConstructL();
    51     void ConstructL();
    46 
    52 
    47     void DispatchMessageL(const RMessage2& aMessage);
    53     void DispatchMessageL(const RMessage2& aMessage);
    58     TInt CancelSetPreviousPersonality(const RMessage2& aMessage, 
    64     TInt CancelSetPreviousPersonality(const RMessage2& aMessage, 
    59             TBool& aComplete);
    65             TBool& aComplete);
    60     TInt SetPreviousPersonalityOnDisconnect(const RMessage2& aMessage, 
    66     TInt SetPreviousPersonalityOnDisconnect(const RMessage2& aMessage, 
    61             TBool& aComplete);
    67             TBool& aComplete);
    62 
    68 
       
    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 
    63     CUsbWatcherServer* iUsbWatcherServer;
    77     CUsbWatcherServer* iUsbWatcherServer;
    64     RMessage2 iSetPersonalityMessage;
    78     RMessage2 iSetPersonalityMessage;
    65     RMessage2 iCancelSetPersonalityMessage;
    79     RMessage2 iCancelSetPersonalityMessage;
    66     RMessage2 iSetPreviousPersonalityMessage;
    80     RMessage2 iSetPreviousPersonalityMessage;
    67     RMessage2 iCancelSetPreviousPersonalityMessage;
    81     RMessage2 iCancelSetPreviousPersonalityMessage;
    68     TBool iSetPersonalityOutstanding;
    82     TBool iSetPersonalityOutstanding;
    69     TBool iCancelSetPersonalityOutstanding;
    83     TBool iCancelSetPersonalityOutstanding;
    70 
    84 
    71     TBool iSetPreviousPersonalityOutstanding;
    85     TBool iSetPreviousPersonalityOutstanding;
    72     TBool iCancelSetPreviousPersonalityOutstanding;
    86     TBool iCancelSetPreviousPersonalityOutstanding;
       
    87     TBool iSuppressAskOnConnection; // Prevent ask on connection mode query 
    73     };
    88     };
    74 
    89 
    75 #endif
    90 #endif
    76 
    91 
    77 // End of file
    92 // End of file