|
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 @publishedPartner |
|
21 */ |
|
22 |
|
23 #ifndef MSMM_POLICY_DEF_H |
|
24 #define MSMM_POLICY_DEF_H |
|
25 |
|
26 /** |
|
27 TPolicyRequestData is used to identify a particular logical unit |
|
28 to the Policy Plugin. Related device and interface information included. |
|
29 */ |
|
30 NONSHARABLE_CLASS(TPolicyRequestData) |
|
31 { |
|
32 public: |
|
33 TUint16 iBcdDevice; // Device Release Number |
|
34 TUint8 iConfigurationNumber; // Number of Possible Configurations |
|
35 TUint iDeviceId; // Device identifier |
|
36 TUint8 iInterfaceNumber; // Interface Number |
|
37 TUint8 iLogicUnitNumber; // Logical Unit Number |
|
38 TUint32 iOtgInformation; // Reserved for Otg Host information |
|
39 TUint16 iProductId; // Product ID (Assigned by Manufacturer) |
|
40 TUint16 iVendorId; // Vendor ID (Assigned by USB Org) |
|
41 TName iSerialNumber; // Serial Number String Descriptor |
|
42 TName iManufacturerString; // Manufacturer String Descriptor |
|
43 TName iProductString; // Product String Descriptor |
|
44 }; |
|
45 |
|
46 /** |
|
47 TPolicyMountRecord is used to record a particular mounting operation |
|
48 */ |
|
49 NONSHARABLE_CLASS(TPolicyMountRecord) |
|
50 { |
|
51 public: |
|
52 TText8 iDriveName; // Drive letter |
|
53 TPolicyRequestData iLogicUnit; // Mounted logical unit |
|
54 }; |
|
55 |
|
56 NONSHARABLE_CLASS(TSuspensionPolicy) |
|
57 { |
|
58 public: |
|
59 /** Time internval to check media status and finalisation */ |
|
60 TUint8 iStatusPollingInterval; |
|
61 /** Time interval to delay suspending the interface after finalisation */ |
|
62 TUint8 iOtgSuspendTime; |
|
63 }; |
|
64 |
|
65 #endif /*MSMM_POLICY_DEF_H*/ |