epoc32/include/mw/rdrmhelper.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
--- a/epoc32/include/mw/rdrmhelper.h	Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/mw/rdrmhelper.h	Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,135 @@
-rdrmhelper.h
+/*
+* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  the client side class for DRMHelperServer
+*
+*/
+
+
+#ifndef RDRMHELPER_H
+#define RDRMHELPER_H
+
+// INCLUDES
+#include <e32base.h>
+
+// DATA TYPES
+
+// FORWARD DECLARATIONS
+
+// CLASS DECLARATION
+
+
+
+
+/**
+*  This class provides the client-side interface to the server session
+*
+*  @since Series 60 2.6
+*/
+
+class RDRMHelper : public RSessionBase
+    {
+    public:  // Constructors and destructor
+
+        /**
+        * C++ default constructor.
+        */
+	    RDRMHelper();
+
+    public:  // New functions
+      
+        /**
+        * Connects to server.
+        * @return System-wide error code
+        */
+	    TInt Connect();
+
+        /**
+        * Gets the version number 
+        * @return version number
+        */
+	    TVersion Version() const;
+
+        /**
+        * Register the given content uri as an automated content.
+        * @param aUri: content URI
+        * @param aActive: active or passive registration
+        * @param aAutomatedType: type of automated content
+        * @param aIntent: intent how content is used
+        * @return System-wide error code
+        */
+        TInt SetAutomated( 
+            const TDesC8& aUri, 
+            TBool aActive, 
+            TInt aAutomatedType, 
+            TInt aIntent ) const;
+
+        /**
+        * Unregister the given content.
+        * @param aUri: content URI
+        * @param aActive: active or passive registration
+        * @param aAutomatedType: type of automated content
+        * @param aIntent: intent how content is used
+        * @return System-wide error code
+        */
+        TInt RemoveAutomated( 
+            const TDesC8& aUri, 
+            TBool aActive, 
+            TInt aAutomatedType, 
+            TInt aIntent ) const;
+
+        /**
+        * Unregister all instances of the given content.
+        * @param aUri: content URI
+        * @param aActive: active or passive registration
+        * @param aAutomatedType: type of automated content
+        * @param aIntent: intent how content is used
+        * @return System-wide error code
+        */
+        TInt RemoveAutomatedAll( 
+            const TDesC8& aUri, 
+            TBool aActive, 
+            TInt aAutomatedType, 
+            TInt aIntent ) const;
+
+        /**
+        * Indicate that idle-screen has been activated.
+        * @return System-wide error code
+        */
+        TInt IndicateIdle() const;       
+
+        /**
+        * Has given content been registered as automated content.
+        * @param aUri content URI of the content
+        * @param aAutomated (out) ETrue if registered as automated.
+        * @param aType (out) Tells whether content has been registered as active or passive.
+        * @return System-wide error code
+        */
+        TInt IsAutomated( 
+            const TDesC8& aUri,
+            TInt aAutomatedType, 
+            TInt aIntent, 
+            TBool& aAutomated, 
+            TInt& aType ) const;       
+
+    private:
+        
+        TInt StartServer();
+        TInt CreateServerProcess();
+    };
+
+
+
+#endif      // DRMHELPERCLIENT_H   
+            
+// End of File