usbengines/usbotgwatcher/src/cusbservicecontrol.cpp
changeset 26 0ae0f29418cd
parent 25 8c311f9acc5e
child 63 ef2686f7597e
equal deleted inserted replaced
25:8c311f9acc5e 26:0ae0f29418cd
     1 /*
     1 /*
     2  * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2008 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".
   164             LOG( "UsbServiceState == EUsbServiceFatalError" );
   164             LOG( "UsbServiceState == EUsbServiceFatalError" );
   165             return KErrGeneral;
   165             return KErrGeneral;
   166             }
   166             }
   167         default:
   167         default:
   168             {
   168             {
   169             Panic( EUnknownUsbServiceState);
   169             PANIC( EUnknownUsbServiceState);
   170             }
   170             }
   171         }
   171         }
   172 
   172 
   173     return KErrNone;
   173     return KErrNone;
   174 
   174 
   246             LOG("UsbServiceState == EUsbServiceFatalError" );
   246             LOG("UsbServiceState == EUsbServiceFatalError" );
   247             return KErrGeneral;
   247             return KErrGeneral;
   248             }
   248             }
   249         default:
   249         default:
   250             {
   250             {
   251             Panic( EUnknownUsbServiceState);
   251             PANIC( EUnknownUsbServiceState);
   252             }
   252             }
   253         }
   253         }
   254     return KErrNone;
   254     return KErrNone;
   255     }
   255     }
   256 
   256 
   370             iObserver.UsbServiceControlReqCompletedL(KErrGeneral);
   370             iObserver.UsbServiceControlReqCompletedL(KErrGeneral);
   371             break;
   371             break;
   372             }
   372             }
   373         default:
   373         default:
   374             {
   374             {
   375             Panic( EUnknownUsbServiceState);
   375             PANIC( EUnknownUsbServiceState);
   376             }
   376             }
   377         }
   377         }
   378 
   378 
   379     }
   379     }
   380 
   380