/*
* NetManager.h
* Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL9
// 2009/10/10
#pragma once
#include <sol/Object.h>
#include <lm.h>
//2009/11/16
#include <sol/StringT.h>
//2009/11/14
#pragma comment(lib, "netapi32.lib")
namespace SOL {
class NetManager :public Object {
private:
//const wchar_t* serverName;
StringT<wchar_t> serverName;
public:
/**
* Constructor
* @param server server name
*/
NetManager(const wchar_t* server=NULL)
:serverName(L"")
{
if (server) {
serverName = server;
}
}
public:
~NetManager()
{
}
public:
const wchar_t* getServerName()
{
return (const wchar_t*)serverName;
}
public:
void setServerName(const wchar_t* name)
{
serverName = name;
}
};
}
|