File: aptpluginfactory.h

package info (click to toggle)
packagesearch 2.10.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,704 kB
  • sloc: cpp: 9,176; perl: 248; makefile: 15; sh: 11
file content (58 lines) | stat: -rw-r--r-- 1,317 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// C++ Interface: aptpluginfactory
//
// Description: 
//
//
// Author: Benjamin Mesing <bensmail@gmx.net>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef __APTPLUGINFACTORY_H_2004_09_11
#define __APTPLUGINFACTORY_H_2004_09_11

#include <ipluginfactory.h>

namespace NApt
{
	class DumpAvailPackageDB;
	class IAptSearch;
 	class IPackageDB;
}

namespace NPlugin 
{

class IProvider;
class IAptMediator;

/** @brief Factory for creating apt plugins.
  *
  * @author Benjamin Mesing
  */
class AptPluginFactory : public IPluginFactory
{
	 
	/** This holds the interface to access the information of the packages
	  * and for searching. */
	NApt::IPackageDB* _pPackageDB; 
	/** This holds the interface to access the information of the packages
	  * and for searching. */
	NApt::IAptSearch* _pAptSearch; 
	/** Holds the mediator object to allow the plugins to communicate with each other. */
	IAptMediator* _pMediator; 
public:
	AptPluginFactory(IProvider* pProvider, IAptMediator* pMediator, 
		NApt::IPackageDB* pPackageDB, NApt::IAptSearch* pAptSearch);
	virtual ~AptPluginFactory();
	/** @name IPluginFactory interface */
	//@{
	// documented in base class
	virtual Plugin* createPlugin(const string& name) const;
	//@}
};

};

#endif	// __APTPLUGINFACTORY_H_2004_09_11