~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to qcm/plugins.qcm

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-04-14 18:57:30 UTC
  • mfrom: (2.1.9 hardy)
  • Revision ID: james.westby@ubuntu.com-20080414185730-528re3zp0m2hdlhi
Tags: 0.11-8
* added CONFIG -= link_prl to .pro files and removed dependencies
  which are made unnecessary by this change
* Fix segfault when closing last chat tab with qt4.4
  (This is from upstream svn, rev. 1101) (Closes: Bug#476122)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
-----BEGIN QCMOD-----
 
3
name: Plugins
 
4
arg: enable-plugins,Enable Psi Plugin support
 
5
 
 
6
-----END QCMOD-----
 
7
*/
 
8
 
 
9
//----------------------------------------------------------------------------
 
10
// qc_plugins
 
11
//----------------------------------------------------------------------------
 
12
class qc_plugins : public ConfObj
 
13
{
 
14
public:
 
15
        qc_plugins(Conf *c) : ConfObj(c) {}
 
16
        QString name() const { return "Plugins"; }
 
17
        QString shortname() const { return "Plugins"; }
 
18
        bool exec()
 
19
        {
 
20
                QString s;
 
21
                
 
22
                // Check if Jingle was enabled explicitly
 
23
                s = conf->getenv("QC_ENABLE_PLUGINS");
 
24
                if(s.isEmpty())
 
25
                        return false;
 
26
                
 
27
                conf->addDefine("PSI_PLUGINS");
 
28
                
 
29
                // Finish
 
30
                conf->addExtra("CONFIG += psi_plugins");                              
 
31
 
 
32
                qWarning("");
 
33
                qWarning("");
 
34
                qWarning("        !!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!");
 
35
                qWarning("        PLUGIN SUPPORT IS STILL UNFINISHED !!!");
 
36
                qWarning("        THE PLUGIN INTERFACE /WILL/ CHANGE !!!");
 
37
                qWarning("        USE AT YOUR OWN RISK !!!");
 
38
 
 
39
                return true;
 
40
        }
 
41
};