renamed PortLookUp to firewall, and the files to sysadm-firewall

This commit is contained in:
Luke De Mouy
2016-01-11 12:22:54 -07:00
parent fb508a8352
commit a326c3f811
3 changed files with 10 additions and 10 deletions

View File

@@ -14,13 +14,13 @@ HEADERS += sysadm-global.h \
sysadm-general.h \
sysadm-lifepreserver.h \
sysadm-network.h \
portlookup.h
sysadm-firewall.h
SOURCES += sysadm-general.cpp \
sysadm-lifepreserver.cpp \
sysadm-network.cpp \
NetDevice.cpp \
portlookup.cpp
sysadm-firewall.cpp
include.path=/usr/local/include/
include.files=sysadm-*.h

View File

@@ -1,7 +1,7 @@
#include "portlookup.h"
#include "sysadm-firewall.h"
#include <QtCore>
using namespace sysadm;
PortInfo PortLookUp::LookUpPort(int portNumber, QString portType)
PortInfo Firewall::LookUpPort(int portNumber, QString portType)
{
//Make sure that the port is valid
if (portNumber < 0 || portNumber > 65535)
@@ -70,17 +70,17 @@ PortInfo PortLookUp::LookUpPort(int portNumber, QString portType)
}
PortLookUp::PortLookUp()
Firewall::Firewall()
{
readServicesFile();
}
PortLookUp::~PortLookUp()
Firewall::~Firewall()
{
delete portStrings;
}
void PortLookUp::readServicesFile()
void Firewall::readServicesFile()
{
portStrings = new QStringList();

View File

@@ -19,7 +19,7 @@ struct PortInfo{
const static int recommendedPorts[] = {22, 80};
const static int recommendedPortsSize = 2;
class PortLookUp
class Firewall
{
public:
@@ -33,8 +33,8 @@ public:
* @ErrorConditions Port Number is set to -1 and a description of the error is stored in the description variable
*/
PortInfo LookUpPort(int portNumber, QString portType);
PortLookUp();
~PortLookUp();
Firewall();
~Firewall();
private:
void readServicesFile();