wmdrm/wmdrmengine/wmdrmagent/inc/wmdrmagentfactory.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2006 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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef WMDRMAGENTFACTORY_H
       
    22 #define WMDRMAGENTFACTORY_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <AgentFactory.h>
       
    26 #include "WmDrmAgentContent.h"
       
    27 #include "WmDrmAgentData.h"
       
    28 #include "WmDrmAgentManager.h"
       
    29 #include "WmDrmAgentRightsManager.h"
       
    30 #include "WmDrmAgentImportFile.h"
       
    31 
       
    32 // CONSTANTS
       
    33 //const ?type ?constant_var = ?constant;
       
    34 
       
    35 // MACROS
       
    36 //#define ?macro ?macro_def
       
    37 
       
    38 // DATA TYPES
       
    39 //enum ?declaration
       
    40 //typedef ?declaration
       
    41 //extern ?data_type;
       
    42 
       
    43 // FUNCTION PROTOTYPES
       
    44 //?type ?function_name(?arg_list);
       
    45 
       
    46 // FORWARD DECLARATIONS
       
    47 //class ?FORWARD_CLASSNAME;
       
    48 
       
    49 namespace ContentAccess
       
    50 	{
       
    51 // CLASS DECLARATION
       
    52 
       
    53 /**
       
    54 *  ?one_line_short_description.
       
    55 *  ?other_description_lines
       
    56 *
       
    57 *  @lib ?library
       
    58 *  @since Series ?XX ?SeriesXX_version
       
    59 */
       
    60 	class CWmDrmAgentFactory : public CAgentFactory
       
    61 		{
       
    62     public:  // Constructors and destructor
       
    63         
       
    64         /**
       
    65         * Two-phased constructor.
       
    66         */
       
    67         static CWmDrmAgentFactory* NewL();
       
    68         
       
    69         /**
       
    70         * Destructor.
       
    71         */
       
    72         virtual ~CWmDrmAgentFactory();
       
    73 
       
    74     public: // New functions
       
    75         
       
    76         /**
       
    77         * ?member_description.
       
    78         * @since Series ?XX ?SeriesXX_version
       
    79         * @param ?arg1 ?description
       
    80         * @return ?description
       
    81         */
       
    82         //?type ?member_function( ?type ?arg1 );
       
    83 
       
    84     public: // Functions from base classes
       
    85 
       
    86         /**
       
    87         * From ?base_class ?member_description.
       
    88         * @since Series ?XX ?SeriesXX_version
       
    89         * @param ?arg1 ?description
       
    90         * @return ?description
       
    91         */
       
    92 		CAgentContent* CreateContentBrowserL(const TDesC& aURI, TContentShareMode aShareMode);	
       
    93 		CAgentContent* CreateContentBrowserL(RFile& aFile);
       
    94 		CAgentData* CreateDataConsumerL(const TVirtualPathPtr& aVirtualPath, TContentShareMode aShareMode);
       
    95 		CAgentData* CreateDataConsumerL(RFile& aFile, const TDesC& aUniqueId);
       
    96 		CAgentManager*  CreateManagerL();
       
    97 		CAgentImportFile* CreateImporterL(const TDesC8& aMimeType, const CMetaDataArray& aMetaDataArray, const TDesC& aOutputDirectory, const TDesC& aSuggestedFileName);
       
    98 		CAgentImportFile* CreateImporterL(const TDesC8& aMimeType, const CMetaDataArray& aMetaDataArray);
       
    99 		CAgentRightsManager* CreateRightsManagerL();	
       
   100 
       
   101     protected:  // New functions
       
   102         
       
   103         /**
       
   104         * ?member_description.
       
   105         * @since Series ?XX ?SeriesXX_version
       
   106         * @param ?arg1 ?description
       
   107         * @return ?description
       
   108         */
       
   109         //?type ?member_function( ?type ?arg1 );
       
   110 
       
   111     protected:  // Functions from base classes
       
   112         
       
   113         /**
       
   114         * From ?base_class ?member_description
       
   115         */
       
   116         //?type ?member_function();
       
   117 
       
   118     private:
       
   119 
       
   120         /**
       
   121         * C++ default constructor.
       
   122         */
       
   123         CWmDrmAgentFactory();
       
   124 
       
   125         /**
       
   126         * By default Symbian 2nd phase constructor is private.
       
   127         */
       
   128         void ConstructL();
       
   129 
       
   130         // Prohibit copy constructor if not deriving from CBase.
       
   131         // CWmDrmAgentFactory( const CWmDrmAgentFactory& );
       
   132         // Prohibit assigment operator if not deriving from CBase.
       
   133         // CWmDrmAgentFactory& operator=( const CWmDrmAgentFactory& );
       
   134 
       
   135     public:     // Data
       
   136         // ?one_line_short_description_of_data
       
   137         //?data_declaration;
       
   138     
       
   139     protected:  // Data
       
   140         // ?one_line_short_description_of_data
       
   141         //?data_declaration;
       
   142 
       
   143     private:    // Data
       
   144         // ?one_line_short_description_of_data
       
   145         //?data_declaration;
       
   146          
       
   147         // Reserved pointer for future extension
       
   148         //TAny* iReserved;
       
   149 
       
   150     public:     // Friend classes
       
   151         //?friend_class_declaration;
       
   152     protected:  // Friend classes
       
   153         //?friend_class_declaration;
       
   154     private:    // Friend classes
       
   155         //?friend_class_declaration;
       
   156 
       
   157     };
       
   158 
       
   159 } // namespace ContentAccess
       
   160 #endif // WMDRMAGENTFACTORY_H
       
   161             
       
   162 // End of File