applicationmanagement/server/inc/AMDownloaddb.h
changeset 18 7d11f9a6646f
parent 4 75a71fdb4c92
child 21 c707676bf59f
--- a/applicationmanagement/server/inc/AMDownloaddb.h	Tue Feb 02 00:03:17 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,142 +0,0 @@
-/*
-* Copyright (c) 2009 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:  Implementation of applicationmanagement components
- *
-*/
-
-
-#ifndef __AMDownloaddb_H
-#define __AMDownloaddb_H
-
-// INCLUDE FILES
-
-#include <e32std.h>
-#include <e32base.h>
-#include <d32dbms.h>
-#include <f32file.h>
-#include <SyncMLDef.h>
-
-// CONSTANTS
-
-// null final result value
-const TInt KAMNullResult = 0;
-
-// Database name & location
-const TInt KAMDownloaddbDrive = EDriveC;
-const TUid KAMPolicyUID =
-    {
-    0x1020781C
-    };
-const TInt KAMMaxPkgURLLength( 2048);
-const TInt KAMMaxPkgNameLength( 80);
-const TInt KAMMaxPkgVersionLength( 80);
-
-_LIT( KDBMSSecureID, "secure[1020781C]" );
-
-_LIT( KAMDownloaddbName, "c:TARMAppMgmtDownloadDB.db" );
-
-// Table and column names
-_LIT( KTableAMMgmtObject, "AMMgmtObject" );
-
-_LIT(NCol1, "Id");
-_LIT(NCol2, "LUID");
-_LIT(NCol3, "Result");
-_LIT(NCol4, "TargetURI");
-_LIT(NCol5, "IAPId");
-
-class CAMDbItem : public CBase
-    {
-public:
-    static CAMDbItem* NewL();
-    ~CAMDbItem();
-
-    TInt id;
-    TUint32 iLUID;
-    TInt iResult;
-
-    HBufC8* iTargetURI;
-
-    TUint32 iapid;
-
-    };
-
-// CLASS DECLARATION
-
-/**
- *  CAMDownloaddb provides an interface for accessing AM database.
- *  
- *  @lib AMadapter.lib
- *  
- */
-class CAMDownloaddb : public CBase
-    {
-
-public:
-
-    /**
-     * Two-phased constructor.
-     * @return A pointer to the newly created instance.
-     */
-    static CAMDownloaddb* NewL();
-
-    /**
-     * Two-phased constructor. Pushes the pointer onto the CleanupStack.
-     * @return A pointer to the newly created instance.
-     */
-    static CAMDownloaddb* NewLC();
-
-    /**
-     * Destructor.
-     */
-    virtual ~CAMDownloaddb();
-
-    void CreateTableL(RDbDatabase& aDatabase);
-
-    void CreateandOpenL(TParse& name);
-
-    TBool DeleteFromDatabaseL(TUint32 aLUID);
-
-    void SaveToDatabaseL(TInt& aIndex, TUint32 aLuid, TInt aResult,
-            const TDesC8& aTargetURI, TUint32 aIapid);
-
-    void ReadItemsL(RPointerArray<CAMDbItem>& aItemArray, TDesC& aQueryBuffer);
-
-    void ReadDbItemsL(RPointerArray<CAMDbItem>& aItemArray);
-
-    void GetEntryForLUIDL(RPointerArray<CAMDbItem>& aItemArray, TDesC& aValue);
-
-    /**
-     * Second phase construction.
-     */
-    void ConstructL();
-
-    /**
-     * Constructor.
-     */
-    CAMDownloaddb();
-
-private:
-
-    RDbNamedDatabase iDatabase;
-    RFs iFsSession;
-    RDbs iRdbSession;
-
-    RDbTable iAMObjectTable;
-    CDbColSet* iColSet;
-    RDbView iView;
-
-    };
-
-#endif // __AMDownloaddb_H   
-// End of File