usbmgmt/usbmgr/host/functiondrivers/ms/msmm/inc/srvpanic.h
changeset 0 c9bc50fca66e
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 /*
       
     2 * Copyright (c) 2008-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:
       
    15 *
       
    16 */
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef SRVPANIC_H
       
    24 #define SRVPANIC_H
       
    25 
       
    26 #include <e32std.h>
       
    27 #include <e32cmn.h>
       
    28 
       
    29 // Constant
       
    30 
       
    31 // Category
       
    32 _LIT(KMsmmPanicServer, "MSMM Server");
       
    33 _LIT(KMsmmPanicClient, "MSMM Client");
       
    34 
       
    35 // Panic number
       
    36 enum TMsmmServerPanic
       
    37     {
       
    38     ENoPolicyPlugin = 0x01, // Missing policy plugin when starting server.
       
    39     ENotSupported = 0x02,
       
    40     EServerPanicMark
       
    41     };
       
    42 
       
    43 enum TMsmmClientPanic
       
    44     {
       
    45     EBadRequest = 0x01,
       
    46     EConnectionExist = 0x02, // Currently there is a connection to server.
       
    47     ENoSupportedVersion = 0x03, // Server can not support this version.
       
    48     EClientPanicMark
       
    49     };
       
    50 
       
    51 inline void PanicServer(TMsmmServerPanic aPanic)
       
    52     {
       
    53     User::Panic(KMsmmPanicServer, aPanic);
       
    54     }
       
    55 
       
    56 inline void PanicClient(const RMessage2& aMsg, TMsmmClientPanic aPanic)
       
    57     {
       
    58     aMsg.Panic(KMsmmPanicClient, aPanic);
       
    59     }
       
    60 
       
    61 #endif /*SRVPANIC_H*/