filemanager/bkupengine/inc/CMMCScBkupDriveAndOperationTypeManager.h
changeset 0 6a9f87576119
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/filemanager/bkupengine/inc/CMMCScBkupDriveAndOperationTypeManager.h	Mon Jan 18 20:09:41 2010 +0200
@@ -0,0 +1,153 @@
+/*
+* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0""
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Declaration of CMMCScBkupDriveAndOperationTypeManager
+*     
+*
+*/
+
+#ifndef __CMMCSCBKUPDRIVEANDOPERATIONTYPEMANAGER_H__
+#define __CMMCSCBKUPDRIVEANDOPERATIONTYPEMANAGER_H__
+
+// System includes
+#include <connect/sbdefs.h>
+#include <connect/sbtypes.h>
+#include <barsread.h>
+
+// User includes
+#include "TMMCScBkupOwnerDataType.h"
+
+// Namespaces
+using namespace conn;
+
+
+
+/**
+*
+*
+* @since 3.0
+*/
+NONSHARABLE_CLASS(TMMCScBkupDriveAndOperationType)
+    {
+    public:
+        inline TMMCScBkupDriveAndOperationType()
+            : iDrive( EDriveC ), iType( EMMCScBkupOwnerDataTypeAny ) { }
+
+        inline TMMCScBkupDriveAndOperationType( TDriveNumber aDrive, TMMCScBkupOwnerDataType aType )
+            : iDrive( aDrive ), iType( aType ) { }
+ 
+    public: // Common attributes
+
+        /**
+        *
+        */
+        inline TDriveNumber Drive() const { return iDrive; }
+
+        /**
+        *
+        */
+        inline void SetDrive( TDriveNumber aDrive ) { iDrive = aDrive; }
+
+        /**
+        *
+        */
+        inline TMMCScBkupOwnerDataType DataType() const { return iType; }
+
+        /**
+        *
+        */
+        inline void SetDataType( TMMCScBkupOwnerDataType aType ) { iType = aType; }
+
+    private: // Data members
+
+        //
+        TDriveNumber iDrive;
+        //
+        TMMCScBkupOwnerDataType iType;
+    };
+
+
+
+
+
+
+
+/**
+*
+*
+* @since 3.0
+*/
+NONSHARABLE_CLASS(CMMCScBkupDriveAndOperationTypeManager) : public CBase
+    {
+    public:
+
+        /**
+        *
+        */
+        IMPORT_C static CMMCScBkupDriveAndOperationTypeManager* NewL( TResourceReader& aReader );
+
+        /**
+        *
+        */
+        IMPORT_C ~CMMCScBkupDriveAndOperationTypeManager();
+
+    private:
+
+        /**
+        *
+        */
+        CMMCScBkupDriveAndOperationTypeManager();
+
+        /**
+        *
+        */
+        void ConstructL( TResourceReader& aReader );
+
+
+    public: // API
+
+        /**
+        *
+        */
+        TInt Count() const;
+
+        /**
+        *
+        */
+        const TMMCScBkupDriveAndOperationType& At( TInt aIndex ) const;
+        
+        /**
+        *
+        */
+        inline const TDriveList& DriveList() const { return iCalculatedDriveList; }
+
+        /**
+        *
+        */
+        TBool IsDataTypeAllowedToAccessDrive( TDriveNumber aDrive, TMMCScBkupOwnerDataType aDataType ) const;
+
+    private: // Internal methods
+
+
+    private: // Data members
+        
+        //
+        RArray< TMMCScBkupDriveAndOperationType > iEntries;
+        //
+        TDriveList iCalculatedDriveList;
+
+    };
+
+#endif // __CMMCSCBKUPDRIVEANDOPERATIONTYPEMANAGER_H__
+
+//End of File