omadrm/drmengine/agentv2/inc/Oma2AgentFactory.h
changeset 0 95b198f216e5
child 12 8a03a285ab14
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2002-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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef OMA2AGENTFACTORY_H
       
    21 #define OMA2AGENTFACTORY_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <caf/agentfactory.h>
       
    25 #include "oma2agentcontent.h"
       
    26 #include "oma2agentdata.h"
       
    27 #include "oma2agentmanager.h"
       
    28 #include "oma2agentrightsmanager.h"
       
    29 #include "oma2agentimportfile.h"
       
    30 
       
    31 // CONSTANTS
       
    32 //const ?type ?constant_var = ?constant;
       
    33 
       
    34 // MACROS
       
    35 //#define ?macro ?macro_def
       
    36 
       
    37 // DATA TYPES
       
    38 //enum ?declaration
       
    39 //typedef ?declaration
       
    40 //extern ?data_type;
       
    41 
       
    42 // FUNCTION PROTOTYPES
       
    43 //?type ?function_name(?arg_list);
       
    44 
       
    45 // FORWARD DECLARATIONS
       
    46 //class ?FORWARD_CLASSNAME;
       
    47 
       
    48 namespace ContentAccess
       
    49 {
       
    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 COma2AgentFactory : public CAgentFactory
       
    61     {
       
    62     public:  // Constructors and destructor
       
    63         
       
    64         /**
       
    65         * Two-phased constructor.
       
    66         */
       
    67         static COma2AgentFactory* NewL();
       
    68         
       
    69         /**
       
    70         * Destructor.
       
    71         */
       
    72         virtual ~COma2AgentFactory();
       
    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         COma2AgentFactory();
       
   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         // COma2AgentFactory( const COma2AgentFactory& );
       
   132         // Prohibit assigment operator if not deriving from CBase.
       
   133         // COma2AgentFactory& operator=( const COma2AgentFactory& );
       
   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 }
       
   160 
       
   161 #endif      // OMA2AGENTFACTORY_H   
       
   162             
       
   163 // End of File