mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
parent
563bd0b430
commit
0ae2bb2fae
2 changed files with 11 additions and 11 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
CS::Editor::Editor() : mViewManager (mDocumentManager)
|
CS::Editor::Editor() : mViewManager (mDocumentManager)
|
||||||
{
|
{
|
||||||
ipcServerName = "IPCServer";
|
mIpcServerName = "IPCServer";
|
||||||
|
|
||||||
connect (&mViewManager, SIGNAL (newDocumentRequest ()), this, SLOT (createDocument ()));
|
connect (&mViewManager, SIGNAL (newDocumentRequest ()), this, SLOT (createDocument ()));
|
||||||
connect (&mViewManager, SIGNAL (loadDocumentRequest ()), this, SLOT (loadDocument ()));
|
connect (&mViewManager, SIGNAL (loadDocumentRequest ()), this, SLOT (loadDocument ()));
|
||||||
|
@ -128,23 +128,23 @@ void CS::Editor::showStartup()
|
||||||
|
|
||||||
bool CS::Editor::makeIPCServer()
|
bool CS::Editor::makeIPCServer()
|
||||||
{
|
{
|
||||||
server = new QLocalServer(this);
|
mServer = new QLocalServer(this);
|
||||||
|
|
||||||
if(server->listen(ipcServerName))
|
if(mServer->listen(mIpcServerName))
|
||||||
{
|
{
|
||||||
connect(server, SIGNAL(newConnection()), this, SLOT(showStartup()));
|
connect(mServer, SIGNAL(newConnection()), this, SLOT(showStartup()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
server->close();
|
mServer->close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CS::Editor::connectToIPCServer()
|
void CS::Editor::connectToIPCServer()
|
||||||
{
|
{
|
||||||
clientToServerSocket = new QLocalSocket(this);
|
mClientSocket = new QLocalSocket(this);
|
||||||
clientToServerSocket->connectToServer(ipcServerName);
|
mClientSocket->connectToServer(mIpcServerName);
|
||||||
clientToServerSocket->close();
|
mClientSocket->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
int CS::Editor::run()
|
int CS::Editor::run()
|
||||||
|
|
|
@ -57,9 +57,9 @@ namespace CS
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
QString ipcServerName;
|
QString mIpcServerName;
|
||||||
QLocalServer *server;
|
QLocalServer *mServer;
|
||||||
QLocalSocket *clientToServerSocket;
|
QLocalSocket *mClientSocket;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue