userlibandfileserver/fileserver/shostmassstorage/server/controller/include/cusbhostmsdevice.h
changeset 4 56f325a607ea
parent 0 a41df078684a
child 24 41f0cfe18c80
--- a/userlibandfileserver/fileserver/shostmassstorage/server/controller/include/cusbhostmsdevice.h	Mon Dec 21 16:14:42 2009 +0000
+++ b/userlibandfileserver/fileserver/shostmassstorage/server/controller/include/cusbhostmsdevice.h	Wed Dec 23 11:43:31 2009 +0000
@@ -30,11 +30,6 @@
 class CUsbHostMsDevice : public CBase
 	{
 public:
-    enum TDeviceState
-        {
-		EActive,
-		ESuspended,
-        };
 
 	static CUsbHostMsDevice* NewL(THostMassStorageConfig& aConfig);
 	~CUsbHostMsDevice();
@@ -50,12 +45,13 @@
 	void SetMaxLun(TLun aMaxLun);
 	TLun GetMaxLun() const;
 
-	TBool IsActive();
-	TBool IsSuspended();
+	TBool IsReady() const;
+	TBool IsSuspended() const;
+
 	void InitLunL(TLun aLun);
 
 	void SuspendLunL(TLun aLun);
-	void ResumeL(TRequestStatus &aStatus);
+	void Resume(TRequestStatus& aStatus);
 	void ResumeLogicalUnitsL();
 	void ResumeCompletedL();
 
@@ -72,6 +68,12 @@
 	static TInt TimerCallback(TAny* obj);
 
 private:
+    enum TDeviceState
+        {
+        EReady,
+        ESuspended
+        };
+
 	MTransport* iTransport;
 	TLun iMaxLun;
     TLogicalUnitList iLuList;
@@ -92,5 +94,17 @@
     return iMaxLun;
     }
 
+
+inline TBool CUsbHostMsDevice::IsReady() const
+	{
+	return (iState == EReady)? ETrue : EFalse;
+	}
+
+
+inline TBool CUsbHostMsDevice::IsSuspended() const
+	{
+	return (iState == ESuspended)? ETrue : EFalse;
+	}
+
 #endif // CUSBHOSTMSDEVICE_H