usbengines/usbwatcher/inc/cusbwatcherserver.h
changeset 35 9d8b04ca6939
parent 0 1e05558e2206
equal deleted inserted replaced
34:7858bc6ead78 35:9d8b04ca6939
       
     1 /*
       
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Header file for CUsbWatcherServer class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CUSBWATCHERSERVER_H
       
    20 #define CUSBWATCHERSERVER_H
       
    21 
       
    22 //
       
    23 // Forward declarations
       
    24 //
       
    25 class CUsbWatcher;
       
    26 
       
    27 /**
       
    28  * The CUsbWatcherServer class
       
    29  *
       
    30  * Implements a Symbian OS server that exposes the RUsbWatcher API
       
    31  */
       
    32 NONSHARABLE_CLASS( CUsbWatcherServer ) : public CPolicyServer
       
    33     {
       
    34 public:
       
    35     static CUsbWatcherServer* NewLC();
       
    36     virtual ~CUsbWatcherServer();
       
    37 
       
    38     virtual CSession2* NewSessionL( const TVersion &aVersion,
       
    39             const RMessage2& aMessage ) const;
       
    40     void Error( TInt aError );
       
    41 
       
    42     CUsbWatcher& Watcher() const;
       
    43         
       
    44 protected:
       
    45     CUsbWatcherServer();
       
    46     void ConstructL();
       
    47         
       
    48 private:
       
    49     CUsbWatcher* iUsbWatcher;
       
    50     };
       
    51 
       
    52 #include "cusbwatcherserver.inl"
       
    53 
       
    54 #endif
       
    55 
       
    56 // End of file
       
    57