You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kmyfirewall/kmyfirewall/ruleoptionplugins/protocol_option/kmfruleoptioneditprotocol.h

92 lines
2.4 KiB

/***************************************************************************
Copyright (C) 2004 Christian Hubinger
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
//
// C++ Interface: kmfruleoptioneditiip
//
// Description:
//
//
// Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KMFRULEOPTIONEDITPROTOCOL_H
#define KMFRULEOPTIONEDITPROTOCOL_H
#include "../../core/kmfruleoptioneditinterface.h"
// KDE includes
#include <tdeparts/part.h>
#include <tdeparts/plugin.h>
#include <tdeparts/factory.h>
#include <kxmlgui.h>
class TDEInstance;
namespace KMF {
class IPTRule;
class KMFRuleEditorProtocol;
/**
@author Christian Hubinger
*/
class KMFRuleOptionEditProtocol : public KMFRuleOptionEditInterface {
Q_OBJECT
public:
KMFRuleOptionEditProtocol(TQObject *parent = 0, const char *name = 0);
~KMFRuleOptionEditProtocol();
void loadRule( IPTRule* rule );
TQWidget* editWidget();
const TQString& optionEditName() const;
const TQString& description() const;
private slots:
void slotShowOverview();
private:
KMFRuleEditorProtocol *m_edit;
IPTRule *m_rule;
};
class KMFRuleOptionEditProtocolFactory : public KLibFactory {
Q_OBJECT
public:
KMFRuleOptionEditProtocolFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleOptionEditProtocolFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static TDEInstance* instance(); */
/*private:
static TDEInstance* s_instance;*/
};
}
#endif