epoc32/include/mw/rdrmhelper.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:  the client side class for DRMHelperServer
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
#ifndef RDRMHELPER_H
williamr@2
    20
#define RDRMHELPER_H
williamr@2
    21
williamr@2
    22
// INCLUDES
williamr@2
    23
#include <e32base.h>
williamr@2
    24
williamr@2
    25
// DATA TYPES
williamr@2
    26
williamr@2
    27
// FORWARD DECLARATIONS
williamr@2
    28
williamr@2
    29
// CLASS DECLARATION
williamr@2
    30
williamr@2
    31
williamr@2
    32
williamr@2
    33
williamr@2
    34
/**
williamr@2
    35
*  This class provides the client-side interface to the server session
williamr@2
    36
*
williamr@2
    37
*  @since Series 60 2.6
williamr@2
    38
*/
williamr@2
    39
williamr@2
    40
class RDRMHelper : public RSessionBase
williamr@2
    41
    {
williamr@2
    42
    public:  // Constructors and destructor
williamr@2
    43
williamr@2
    44
        /**
williamr@2
    45
        * C++ default constructor.
williamr@2
    46
        */
williamr@2
    47
	    RDRMHelper();
williamr@2
    48
williamr@2
    49
    public:  // New functions
williamr@2
    50
      
williamr@2
    51
        /**
williamr@2
    52
        * Connects to server.
williamr@2
    53
        * @return System-wide error code
williamr@2
    54
        */
williamr@2
    55
	    TInt Connect();
williamr@2
    56
williamr@2
    57
        /**
williamr@2
    58
        * Gets the version number 
williamr@2
    59
        * @return version number
williamr@2
    60
        */
williamr@2
    61
	    TVersion Version() const;
williamr@2
    62
williamr@2
    63
        /**
williamr@2
    64
        * Register the given content uri as an automated content.
williamr@2
    65
        * @param aUri: content URI
williamr@2
    66
        * @param aActive: active or passive registration
williamr@2
    67
        * @param aAutomatedType: type of automated content
williamr@2
    68
        * @param aIntent: intent how content is used
williamr@2
    69
        * @return System-wide error code
williamr@2
    70
        */
williamr@2
    71
        TInt SetAutomated( 
williamr@2
    72
            const TDesC8& aUri, 
williamr@2
    73
            TBool aActive, 
williamr@2
    74
            TInt aAutomatedType, 
williamr@2
    75
            TInt aIntent ) const;
williamr@2
    76
williamr@2
    77
        /**
williamr@2
    78
        * Unregister the given content.
williamr@2
    79
        * @param aUri: content URI
williamr@2
    80
        * @param aActive: active or passive registration
williamr@2
    81
        * @param aAutomatedType: type of automated content
williamr@2
    82
        * @param aIntent: intent how content is used
williamr@2
    83
        * @return System-wide error code
williamr@2
    84
        */
williamr@2
    85
        TInt RemoveAutomated( 
williamr@2
    86
            const TDesC8& aUri, 
williamr@2
    87
            TBool aActive, 
williamr@2
    88
            TInt aAutomatedType, 
williamr@2
    89
            TInt aIntent ) const;
williamr@2
    90
williamr@2
    91
        /**
williamr@2
    92
        * Unregister all instances of the given content.
williamr@2
    93
        * @param aUri: content URI
williamr@2
    94
        * @param aActive: active or passive registration
williamr@2
    95
        * @param aAutomatedType: type of automated content
williamr@2
    96
        * @param aIntent: intent how content is used
williamr@2
    97
        * @return System-wide error code
williamr@2
    98
        */
williamr@2
    99
        TInt RemoveAutomatedAll( 
williamr@2
   100
            const TDesC8& aUri, 
williamr@2
   101
            TBool aActive, 
williamr@2
   102
            TInt aAutomatedType, 
williamr@2
   103
            TInt aIntent ) const;
williamr@2
   104
williamr@2
   105
        /**
williamr@2
   106
        * Indicate that idle-screen has been activated.
williamr@2
   107
        * @return System-wide error code
williamr@2
   108
        */
williamr@2
   109
        TInt IndicateIdle() const;       
williamr@2
   110
williamr@2
   111
        /**
williamr@2
   112
        * Has given content been registered as automated content.
williamr@2
   113
        * @param aUri content URI of the content
williamr@2
   114
        * @param aAutomated (out) ETrue if registered as automated.
williamr@2
   115
        * @param aType (out) Tells whether content has been registered as active or passive.
williamr@2
   116
        * @return System-wide error code
williamr@2
   117
        */
williamr@2
   118
        TInt IsAutomated( 
williamr@2
   119
            const TDesC8& aUri,
williamr@2
   120
            TInt aAutomatedType, 
williamr@2
   121
            TInt aIntent, 
williamr@2
   122
            TBool& aAutomated, 
williamr@2
   123
            TInt& aType ) const;       
williamr@2
   124
williamr@2
   125
    private:
williamr@2
   126
        
williamr@2
   127
        TInt StartServer();
williamr@2
   128
        TInt CreateServerProcess();
williamr@2
   129
    };
williamr@2
   130
williamr@2
   131
williamr@2
   132
williamr@2
   133
#endif      // DRMHELPERCLIENT_H   
williamr@2
   134
            
williamr@2
   135
// End of File