logic: network port option
Added options to Coati and VS plugin to set network ports
This commit is contained in:
@@ -115,6 +115,7 @@ std::vector<FilePath> ApplicationSettings::getRecentProjects() const
|
||||
{
|
||||
std::vector<FilePath> recentProjects;
|
||||
std::vector<FilePath> loadedRecentProjects = getPathValues("user/recent_projects/recent_project");
|
||||
|
||||
for (FilePath project: loadedRecentProjects)
|
||||
{
|
||||
if (project.exists())
|
||||
@@ -139,3 +140,23 @@ void ApplicationSettings::setUserHasSeenSettings(bool hasSeenSettings)
|
||||
{
|
||||
setValue<bool>("user/has_seen_settings", hasSeenSettings);
|
||||
}
|
||||
|
||||
int ApplicationSettings::getPluginPort() const
|
||||
{
|
||||
return getValue<int>("network/plugin_port", 6666);
|
||||
}
|
||||
|
||||
void ApplicationSettings::setPluginPort(const int pluginPort)
|
||||
{
|
||||
setValue<int>("network/plugin_port", pluginPort);
|
||||
}
|
||||
|
||||
int ApplicationSettings::getCoatiPort() const
|
||||
{
|
||||
return getValue<int>("network/coati_port", 6667);
|
||||
}
|
||||
|
||||
void ApplicationSettings::setCoatiPort(const int coatiPort)
|
||||
{
|
||||
setValue<int>("network/coati_port", coatiPort);
|
||||
}
|
||||
@@ -55,6 +55,13 @@ public:
|
||||
std::vector<FilePath> getRecentProjects() const;
|
||||
bool setRecentProjects(const std::vector<FilePath>& recentProjects);
|
||||
|
||||
// network
|
||||
int getPluginPort() const;
|
||||
void setPluginPort(const int pluginPort);
|
||||
|
||||
int getCoatiPort() const;
|
||||
void setCoatiPort(const int coatiPort);
|
||||
|
||||
private:
|
||||
ApplicationSettings();
|
||||
ApplicationSettings(const ApplicationSettings&);
|
||||
|
||||
Reference in New Issue
Block a user