summaryrefslogtreecommitdiffstats
path: root/kommander/widget/invokeclass.h
blob: ac6ce32fd3ad054d890beb636738fb615281647a (plain)
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
//
// C++ Interface: invokeclass
//
// Description: 
//
//
// Author: Andras Mantia <amantia@kde.org>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//

#ifndef INVOKECLASS_H
#define INVOKECLASS_H

#include <tqobject.h>
#include <tqstringlist.h>

class InvokeClass : public TQObject {
TQ_OBJECT
  
public:
  InvokeClass(TQObject *parent);
  void invokeSlot(TQObject *object,  const TQString& slot, TQStringList args);

  static TQStringList acceptedSlots() 
  {
    static TQStringList acceptedSlots;
    acceptedSlots  << "const TQString&";
    acceptedSlots << "const TQString&,const TQString&";
    acceptedSlots << "bool";
    acceptedSlots << "int";
    acceptedSlots << "int,int";
    acceptedSlots << "int,int,int";
    acceptedSlots << "int,int,int,int";
    acceptedSlots  << "const TQColor&";

    return acceptedSlots;    
  }

signals:
  void  invoke();
  void  invoke(const TQString&);
  void  invoke(const TQString&,const TQString&);
  void  invoke(bool);
  void  invoke(int);
  void  invoke(int,int);
  void  invoke(int,int,int);
  void  invoke(int,int,int,int);
  void  invoke(const TQColor&);

private:
  TQStringList m_acceptedSlots;

};

#endif