|
|
|
//
|
|
|
|
// 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"
|
|
|
|
|
|
|
|
// TQt Includes
|
|
|
|
#include <tqstring.h>
|
|
|
|
#include <tqguardedptr.h>
|
|
|
|
#include <tqpoint.h>
|
|
|
|
class TQListViewItem;
|
|
|
|
|
|
|
|
namespace KMF {
|
|
|
|
class KMFNetwork;
|
|
|
|
class KMFTarget;
|
|
|
|
|
|
|
|
class KMFSelectActiveTarget : public KMyFirewallSelectActiveTarget
|
|
|
|
{
|
|
|
|
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
|
|
|
|
|