wmdrm/wmdrmengine/wmdrmagent/inc/wmdrmagentrightsmanager.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Declaration of the WMDRM Rights Manager CAF Agent
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef WMDRMAGENTRIGHTSMANAGER_H
       
    20 #define WMDRMAGENTRIGHTSMANAGER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <caf.h>
       
    24 #include <agentinterface.h>
       
    25 
       
    26 namespace ContentAccess
       
    27 {
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  Rights manager implementation for WMDRM
       
    33 *
       
    34 *  @lib wmdrmagent.dll
       
    35 *  @since S60 3.2
       
    36 */
       
    37 class CWmDrmAgentRightsManager : public CAgentRightsManager
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40 
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         static CWmDrmAgentRightsManager* NewL();
       
    45         static CWmDrmAgentRightsManager* NewLC();
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         ~CWmDrmAgentRightsManager();
       
    51 
       
    52     public: // Functions from base classes
       
    53 
       
    54         // From CAgentRightsManager
       
    55         void ListAllRightsL(RStreamablePtrArray<CRightsInfo>& aArray) const;
       
    56         void ListRightsL(RStreamablePtrArray<CRightsInfo>& aArray, const TDesC& aUri) const;
       
    57         void ListRightsL(RStreamablePtrArray<CRightsInfo>& aArray, TVirtualPathPtr& aVirtualPath) const;
       
    58         void ListContentL(RStreamablePtrArray<CVirtualPath>& aArray, CRightsInfo& aRightsInfo) const;
       
    59         MAgentRightsBase* GetRightsDataL(const CRightsInfo& aRightsInfo) const;
       
    60         TInt DeleteRightsObject(const CRightsInfo& aRightsInfo);
       
    61         TInt DeleteAllRightsObjects(const TVirtualPathPtr& aVirtualPath);
       
    62         TInt SetProperty(TAgentProperty aProperty, TInt aValue);
       
    63 
       
    64     private:
       
    65 
       
    66         /**
       
    67         * C++ default constructor.
       
    68         */
       
    69         CWmDrmAgentRightsManager();
       
    70 
       
    71         /**
       
    72         * By default Symbian 2nd phase constructor is private.
       
    73         */
       
    74         void ConstructL();
       
    75 
       
    76         // New functions
       
    77         // Data
       
    78 
       
    79     };
       
    80 
       
    81 }
       
    82 
       
    83 #endif      // WMDRMAGENTRIGHTSMANAGER_H
       
    84 
       
    85 // End of File