blob: ae7ffbc581be03e9fa50aa6a928465c66175f290 (
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
58
59
60
61
62
|
//
// C++ Interface:
//
// Description:
//
//
// Author: Christian Hubinger <e9806056@student.tuwien.ac.at>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KMFSELECTACTIVETARGET_H
#define KMFSELECTACTIVETARGET_H
#include "kmyfirewallselectactivetarget.h"
// QT Includes
#include <tqstring.h>
#include <tqguardedptr.h>
#include <tqpoint.h>
class TQListViewItem;
namespace KMF {
class KMFNetwork;
class KMFTarget;
class KMFSelectActiveTarget : public KMyFirewallSelectActiveTarget
{
Q_OBJECT
TQ_OBJECT
public: static KMFTarget* selectTarget( KMFNetwork* network, const TQString& msg );
public:
KMFSelectActiveTarget ( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~KMFSelectActiveTarget();
/*$PUBLIC_FUNCTIONS$*/
void loadNetwork( KMFNetwork* );
void setMessage( const TQString& );
KMFTarget *selectedTarget();
public slots:
/*$PUBLIC_SLOTS$*/
void slotTargetSelected();
void slotNewItemSelected( TQListViewItem* item );
void slotNewItemDBLClicked( TQListViewItem*, const TQPoint &, int );
void slotCancel();
void slotOk();
protected:
/*$PROTECTED_FUNCTIONS$*/
protected slots:
/*$PROTECTED_SLOTS$*/
private: // DATA
KMFNetwork *m_network;
TQGuardedPtr<KMFTarget> m_target;
};
}
#endif
|