File: plugins.qcm

package info (click to toggle)
psi 0.14-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 12,704 kB
  • ctags: 22,303
  • sloc: cpp: 150,140; ansic: 26,319; xml: 1,215; makefile: 236; python: 178; ruby: 129; sh: 27
file content (41 lines) | stat: -rw-r--r-- 1,022 bytes parent folder | download | duplicates (5)
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
/*
-----BEGIN QCMOD-----
name: Plugins
arg: enable-plugins,Enable Psi Plugin support

-----END QCMOD-----
*/

//----------------------------------------------------------------------------
// qc_plugins
//----------------------------------------------------------------------------
class qc_plugins : public ConfObj
{
public:
	qc_plugins(Conf *c) : ConfObj(c) {}
	QString name() const { return "Plugins"; }
	QString shortname() const { return "Plugins"; }
	bool exec()
	{
		QString s;
		
		// Check if Jingle was enabled explicitly
		s = conf->getenv("QC_ENABLE_PLUGINS");
		if(s.isEmpty())
			return false;
		
		conf->addDefine("PSI_PLUGINS");
		
		// Finish
		conf->addExtra("CONFIG += psi_plugins");                              

		qWarning("");
		qWarning("");
		qWarning("        !!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!");
		qWarning("        PLUGIN SUPPORT IS STILL UNFINISHED !!!");
		qWarning("        THE PLUGIN INTERFACE /WILL/ CHANGE !!!");
		qWarning("        USE AT YOUR OWN RISK !!!");

		return true;
	}
};