diff -r 000000000000 -r 6a9f87576119 filemanager/bkupengine/inc/CMMCScBkupFileListCollection.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/filemanager/bkupengine/inc/CMMCScBkupFileListCollection.h Mon Jan 18 20:09:41 2010 +0200 @@ -0,0 +1,114 @@ +/* +* Copyright (c) 2005-2008 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 for CMMCScBkupFileListCollection +* +* +*/ + +#ifndef __CMMCSCBKUPFILELISTCOLLECTION_H__ +#define __CMMCSCBKUPFILELISTCOLLECTION_H__ + +// System includes +#include + +// User includes +#include "RMMCScBkupPointerArray.h" +#include "CMMCScBkupFileInfo.h" +#include + + +/** +* +* +* @since 3.0 +*/ +NONSHARABLE_CLASS(CMMCScBkupFileListCollection) : public CBase + { + public: + + /** + * Static constructor + */ + static CMMCScBkupFileListCollection* NewL( TBitFlags aCategory, RFs& aFsSession ); + + /** + * C++ destructor + */ + ~CMMCScBkupFileListCollection(); + + private: + + /** + * C++ default constructor + */ + CMMCScBkupFileListCollection( TBitFlags aCategory, RFs& aFsSession ); + + /** + * + */ + void ConstructL(); + + public: // API + + /** + * + */ + void AppendL( const RArray& aArray, RArray< const CMMCScBkupFileInfo* >& aAddedItems, TSecureId aAssociatedSID ); + + /** + * + */ + void AppendL( CMMCScBkupFileInfo* aFileInfo ); + + /** + * + */ + TInt Count() const; + + /** + * + */ + const CMMCScBkupFileInfo& Entry(TInt aIndex) const; + + /** + * + */ + void Remove( TInt aIndex ); + + /** + * + */ + void Reset(); + + /** + * + */ + TBitFlags Category() const { return iCategory; } + + private: // Member data + + // Array of data owners + RMMCScBkupPointerArray iEntries; + // + TBitFlags iCategory; + // + RFs& iFsSession; + }; + + + + +#endif // __CMMCSCBKUPFILELISTCOLLECTION_H__ + +//End of File