20 #ifndef OMA2AGENTFACTORY_H |
20 #ifndef OMA2AGENTFACTORY_H |
21 #define OMA2AGENTFACTORY_H |
21 #define OMA2AGENTFACTORY_H |
22 |
22 |
23 // INCLUDES |
23 // INCLUDES |
24 #include <caf/agentfactory.h> |
24 #include <caf/agentfactory.h> |
25 #include "oma2agentcontent.h" |
25 #include "Oma2AgentContent.h" |
26 #include "oma2agentdata.h" |
26 #include "Oma2AgentData.h" |
27 #include "oma2agentmanager.h" |
27 #include "Oma2AgentManager.h" |
28 #include "oma2agentrightsmanager.h" |
28 #include "Oma2AgentRightsManager.h" |
29 #include "oma2agentimportfile.h" |
29 #include "Oma2AgentImportFile.h" |
30 |
30 |
31 // CONSTANTS |
31 // CONSTANTS |
32 //const ?type ?constant_var = ?constant; |
32 //const ?type ?constant_var = ?constant; |
33 |
33 |
34 // MACROS |
34 // MACROS |
58 * @since Series ?XX ?SeriesXX_version |
58 * @since Series ?XX ?SeriesXX_version |
59 */ |
59 */ |
60 class COma2AgentFactory : public CAgentFactory |
60 class COma2AgentFactory : public CAgentFactory |
61 { |
61 { |
62 public: // Constructors and destructor |
62 public: // Constructors and destructor |
63 |
63 |
64 /** |
64 /** |
65 * Two-phased constructor. |
65 * Two-phased constructor. |
66 */ |
66 */ |
67 static COma2AgentFactory* NewL(); |
67 static COma2AgentFactory* NewL(); |
68 |
68 |
69 /** |
69 /** |
70 * Destructor. |
70 * Destructor. |
71 */ |
71 */ |
72 virtual ~COma2AgentFactory(); |
72 virtual ~COma2AgentFactory(); |
73 |
73 |
74 public: // New functions |
74 public: // New functions |
75 |
75 |
76 /** |
76 /** |
77 * ?member_description. |
77 * ?member_description. |
78 * @since Series ?XX ?SeriesXX_version |
78 * @since Series ?XX ?SeriesXX_version |
79 * @param ?arg1 ?description |
79 * @param ?arg1 ?description |
80 * @return ?description |
80 * @return ?description |
87 * From ?base_class ?member_description. |
87 * From ?base_class ?member_description. |
88 * @since Series ?XX ?SeriesXX_version |
88 * @since Series ?XX ?SeriesXX_version |
89 * @param ?arg1 ?description |
89 * @param ?arg1 ?description |
90 * @return ?description |
90 * @return ?description |
91 */ |
91 */ |
92 CAgentContent* CreateContentBrowserL(const TDesC& aURI, TContentShareMode aShareMode); |
92 CAgentContent* CreateContentBrowserL(const TDesC& aURI, TContentShareMode aShareMode); |
93 CAgentContent* CreateContentBrowserL(RFile& aFile); |
93 CAgentContent* CreateContentBrowserL(RFile& aFile); |
94 CAgentData* CreateDataConsumerL(const TVirtualPathPtr& aVirtualPath, TContentShareMode aShareMode); |
94 CAgentData* CreateDataConsumerL(const TVirtualPathPtr& aVirtualPath, TContentShareMode aShareMode); |
95 CAgentData* CreateDataConsumerL(RFile& aFile, const TDesC& aUniqueId); |
95 CAgentData* CreateDataConsumerL(RFile& aFile, const TDesC& aUniqueId); |
96 CAgentManager* CreateManagerL(); |
96 CAgentManager* CreateManagerL(); |
97 CAgentImportFile* CreateImporterL(const TDesC8& aMimeType, const CMetaDataArray& aMetaDataArray, const TDesC& aOutputDirectory, const TDesC& aSuggestedFileName); |
97 CAgentImportFile* CreateImporterL(const TDesC8& aMimeType, const CMetaDataArray& aMetaDataArray, const TDesC& aOutputDirectory, const TDesC& aSuggestedFileName); |
98 CAgentImportFile* CreateImporterL(const TDesC8& aMimeType, const CMetaDataArray& aMetaDataArray); |
98 CAgentImportFile* CreateImporterL(const TDesC8& aMimeType, const CMetaDataArray& aMetaDataArray); |
99 CAgentRightsManager* CreateRightsManagerL(); |
99 CAgentRightsManager* CreateRightsManagerL(); |
100 |
100 |
101 protected: // New functions |
101 protected: // New functions |
102 |
102 |
103 /** |
103 /** |
104 * ?member_description. |
104 * ?member_description. |
105 * @since Series ?XX ?SeriesXX_version |
105 * @since Series ?XX ?SeriesXX_version |
106 * @param ?arg1 ?description |
106 * @param ?arg1 ?description |
107 * @return ?description |
107 * @return ?description |
108 */ |
108 */ |
109 //?type ?member_function( ?type ?arg1 ); |
109 //?type ?member_function( ?type ?arg1 ); |
110 |
110 |
111 protected: // Functions from base classes |
111 protected: // Functions from base classes |
112 |
112 |
113 /** |
113 /** |
114 * From ?base_class ?member_description |
114 * From ?base_class ?member_description |
115 */ |
115 */ |
116 //?type ?member_function(); |
116 //?type ?member_function(); |
117 |
117 |
133 // COma2AgentFactory& operator=( const COma2AgentFactory& ); |
133 // COma2AgentFactory& operator=( const COma2AgentFactory& ); |
134 |
134 |
135 public: // Data |
135 public: // Data |
136 // ?one_line_short_description_of_data |
136 // ?one_line_short_description_of_data |
137 //?data_declaration; |
137 //?data_declaration; |
138 |
138 |
139 protected: // Data |
139 protected: // Data |
140 // ?one_line_short_description_of_data |
140 // ?one_line_short_description_of_data |
141 //?data_declaration; |
141 //?data_declaration; |
142 |
142 |
143 private: // Data |
143 private: // Data |
144 // ?one_line_short_description_of_data |
144 // ?one_line_short_description_of_data |
145 //?data_declaration; |
145 //?data_declaration; |
146 |
146 |
147 // Reserved pointer for future extension |
147 // Reserved pointer for future extension |
148 //TAny* iReserved; |
148 //TAny* iReserved; |
149 |
149 |
150 public: // Friend classes |
150 public: // Friend classes |
151 //?friend_class_declaration; |
151 //?friend_class_declaration; |