Network: telnet and ftp are now using ServiceListItem, too.

This commit is contained in:
Axel Dörfler 2015-03-18 08:52:24 +00:00
parent ee834bb870
commit 3d3eb8da69
2 changed files with 7 additions and 6 deletions

View File

@ -10,8 +10,8 @@
#include <Catalog.h>
#include <NetworkSettings.h>
#include <NetworkSettingsAddOn.h>
#include <StringItem.h>
#include "ServiceListItem.h"
#include "ServiceView.h"
@ -51,7 +51,7 @@ public:
private:
BNetworkSettings& fSettings;
BStringItem* fItem;
BListItem* fItem;
ServiceView* fView;
};
@ -62,7 +62,7 @@ private:
FTPServiceItem::FTPServiceItem(BNetworkSettings& settings)
:
fSettings(settings),
fItem(new BStringItem(B_TRANSLATE("FTP server"))),
fItem(new ServiceListItem("ftp", B_TRANSLATE("FTP server"), settings)),
fView(NULL)
{
}

View File

@ -10,8 +10,8 @@
#include <Catalog.h>
#include <NetworkSettings.h>
#include <NetworkSettingsAddOn.h>
#include <StringItem.h>
#include "ServiceListItem.h"
#include "ServiceView.h"
@ -51,7 +51,7 @@ public:
private:
BNetworkSettings& fSettings;
BStringItem* fItem;
BListItem* fItem;
ServiceView* fView;
};
@ -62,7 +62,8 @@ private:
TelnetServiceItem::TelnetServiceItem(BNetworkSettings& settings)
:
fSettings(settings),
fItem(new BStringItem(B_TRANSLATE("Telnet server"))),
fItem(new ServiceListItem("telnet", B_TRANSLATE("Telnet server"),
settings)),
fView(NULL)
{
}