--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/drm_plat/drm_rights_api/inc/DrmAsset.h Thu Dec 17 08:52:27 2009 +0200
@@ -0,0 +1,69 @@
+/*
+* 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 class CDRMAsset
+*
+*/
+
+
+#ifndef DRMASSET_H
+#define DRMASSET_H
+
+#include <e32base.h>
+#include <caf/caf.h>
+#include "DcfCommon.h"
+
+// FORWARD DECLARATIONS
+
+const TInt KProtectedDCFKeySize = 24;
+const TInt KDcfDigestSize = 20;
+
+class RWriteStream;
+class RReadStream;
+
+// CLASS DECLARATION
+
+/**
+* CDrmAsset: Encapsulates the content ID, the key and the hash for a RO
+*
+* @lib DrmRights.dll
+* @since 3.0
+*/
+class CDRMAsset: public CBase
+ {
+public:
+
+ IMPORT_C static CDRMAsset* NewL(void);
+ IMPORT_C static CDRMAsset* NewLC(void);
+ IMPORT_C virtual ~CDRMAsset(void);
+
+ IMPORT_C void DuplicateL(CDRMAsset& aAsset);
+ IMPORT_C void ExternalizeL(RWriteStream& aStream);
+ IMPORT_C void InternalizeL(RReadStream& aStream);
+
+ HBufC8* iUid;
+ HBufC8* iParentRights;
+ TBuf8<KDCFKeySize> iKey;
+ TBuf8<KProtectedDCFKeySize> iProtectedKey;
+ TBuf8<KDcfDigestSize> iDigest;
+
+ TBuf8<KDCFKeySize> iAuthenticationSeed;
+ TBuf8<KProtectedDCFKeySize> iProtectedAuthSeed;
+
+protected:
+ CDRMAsset(void);
+ };
+
+#endif // DRMASSET_H
+
+// End of File