userlibandfileserver/fileserver/shostmassstorage/server/controller/include/cusbmssuspendresume.h
equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef __CUSBIFACE_SUSPEND_RESUME_H__ |
|
22 #define __CUSBIFACE_SUSPEND_RESUME_H__ |
|
23 |
|
24 class CUsbMsIfaceSuspendResume : public CActive |
|
25 { |
|
26 public: |
|
27 static CUsbMsIfaceSuspendResume* NewL(MTransport*, CUsbHostMsDevice*); |
|
28 CUsbMsIfaceSuspendResume(MTransport*, CUsbHostMsDevice*); |
|
29 ~CUsbMsIfaceSuspendResume(); |
|
30 void Suspend(); |
|
31 void Resume(TRequestStatus&); |
|
32 private: |
|
33 void RunL(); |
|
34 void DoCancel(); |
|
35 TInt RunError(TInt aError); |
|
36 |
|
37 private: |
|
38 MTransport* iTransport; |
|
39 CUsbHostMsDevice* iDevice; |
|
40 TBool iCancelSuspend; |
|
41 TRequestStatus* iDeviceStatus; |
|
42 }; |
|
43 |
|
44 #endif // __CUSBIFACE_SUSPEND_RESUME_H__ |