Network: telnet and ftp are now using ServiceListItem, too.
This commit is contained in:
@@ -10,8 +10,8 @@
|
|||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
#include <NetworkSettings.h>
|
#include <NetworkSettings.h>
|
||||||
#include <NetworkSettingsAddOn.h>
|
#include <NetworkSettingsAddOn.h>
|
||||||
#include <StringItem.h>
|
|
||||||
|
|
||||||
|
#include "ServiceListItem.h"
|
||||||
#include "ServiceView.h"
|
#include "ServiceView.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
BNetworkSettings& fSettings;
|
BNetworkSettings& fSettings;
|
||||||
BStringItem* fItem;
|
BListItem* fItem;
|
||||||
ServiceView* fView;
|
ServiceView* fView;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ private:
|
|||||||
FTPServiceItem::FTPServiceItem(BNetworkSettings& settings)
|
FTPServiceItem::FTPServiceItem(BNetworkSettings& settings)
|
||||||
:
|
:
|
||||||
fSettings(settings),
|
fSettings(settings),
|
||||||
fItem(new BStringItem(B_TRANSLATE("FTP server"))),
|
fItem(new ServiceListItem("ftp", B_TRANSLATE("FTP server"), settings)),
|
||||||
fView(NULL)
|
fView(NULL)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
#include <NetworkSettings.h>
|
#include <NetworkSettings.h>
|
||||||
#include <NetworkSettingsAddOn.h>
|
#include <NetworkSettingsAddOn.h>
|
||||||
#include <StringItem.h>
|
|
||||||
|
|
||||||
|
#include "ServiceListItem.h"
|
||||||
#include "ServiceView.h"
|
#include "ServiceView.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
BNetworkSettings& fSettings;
|
BNetworkSettings& fSettings;
|
||||||
BStringItem* fItem;
|
BListItem* fItem;
|
||||||
ServiceView* fView;
|
ServiceView* fView;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -62,7 +62,8 @@ private:
|
|||||||
TelnetServiceItem::TelnetServiceItem(BNetworkSettings& settings)
|
TelnetServiceItem::TelnetServiceItem(BNetworkSettings& settings)
|
||||||
:
|
:
|
||||||
fSettings(settings),
|
fSettings(settings),
|
||||||
fItem(new BStringItem(B_TRANSLATE("Telnet server"))),
|
fItem(new ServiceListItem("telnet", B_TRANSLATE("Telnet server"),
|
||||||
|
settings)),
|
||||||
fView(NULL)
|
fView(NULL)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user