File: iaptmediator.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 (49 lines) | stat: -rw-r--r-- 1,327 bytes parent folder | download | duplicates (8)
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
#ifndef NPLUGIN_IAPTMEDIATOR_H_2005_03_06
#define NPLUGIN_IAPTMEDIATOR_H_2005_03_06

#include <qstringlist.h>

#include "installationtool.h"

namespace NPlugin
{

/** @brief This interface is used to allow the Apt-Plugins to communicate with
  * each other without having to know each other.
  *
  * Also defines configuration options, shared among all apt-plugins (e.g. the 
  * installation command configured).
  *
  * @author Benjamin Mesing
  */
class IAptMediator
{
public:
	virtual ~IAptMediator() {};
	/** @brief Returns the list of patterns currently searched for by the AptSearchPlugin.
	  *
	  * @returns the list of patterns currently searched for, an empty list if no searched
	  * is active or the plugin is not available
	  */
	virtual QStringList searchPatterns() = 0;
	
	/** @brief Sets the installation tool to be used. */
	virtual void setInstallationTool(NApt::InstallationTool tool) = 0;
	
	/** @brief Returns the command to execute the configured installation tool (e.g. /usr/bin/apt). */
	virtual QString installationToolCommand() = 0;
	
	/** @brief Requests an update of the apt-database. */
	virtual void updateAptDatabase() = 0;

	/** @brief Requests an update of the apt-database. */
	virtual void reloadAptDatabase() = 0;

	

};

}	// namespace NPlugin

#endif // NPLUGIN_IAPTMEDIATOR_H_2005_03_06