mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 22:44:56 -04:00
a?adido guid para identificar a YACReaderLibrary
a?adidas las clases server y client para los mecanismos IPC que permitir?n la integraci?n entre YACReader y YACReaderLibrary a?adido check que permite ejecutar YACReaderLibray como una aplicaci?n stand alone a?adidos ficheros de clases POCO para gesti?nar los objetos de las bibliotecas eliminado c?digo muerto en LibraryWindow y c?digo comentado en LibraryCreator
This commit is contained in:
@ -60,7 +60,8 @@ HEADERS += comic.h \
|
||||
../common/qnaturalsorting.h \
|
||||
../common/yacreader_flow_gl.h \
|
||||
../common/yacreader_global.h \
|
||||
../common/onstart_flow_selection_dialog.h
|
||||
../common/onstart_flow_selection_dialog.h \
|
||||
yacreader_local_client.h
|
||||
|
||||
SOURCES += comic.cpp \
|
||||
configuration.cpp \
|
||||
@ -88,7 +89,8 @@ SOURCES += comic.cpp \
|
||||
../common/check_new_version.cpp \
|
||||
../common/qnaturalsorting.cpp \
|
||||
../common/yacreader_flow_gl.cpp \
|
||||
../common/onstart_flow_selection_dialog.cpp
|
||||
../common/onstart_flow_selection_dialog.cpp \
|
||||
yacreader_local_client.cpp
|
||||
|
||||
include(../custom_widgets/custom_widgets.pri)
|
||||
|
||||
|
31
YACReader/yacreader_local_client.cpp
Normal file
31
YACReader/yacreader_local_client.cpp
Normal file
@ -0,0 +1,31 @@
|
||||
#include "yacreader_local_client.h"
|
||||
#include "yacreader_comic_library.h"
|
||||
#include "yacreader_comic_info_library.h"
|
||||
|
||||
#include <QLocalSocket>
|
||||
|
||||
YACReaderLocalClient::YACReaderLocalClient(QObject *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
localSocket = new QLocalSocket(this);
|
||||
|
||||
connect(localSocket, SIGNAL(readyRead()), this, SLOT(readMessage()));
|
||||
/*connect(socket, SIGNAL(error(QLocalSocket::LocalSocketError)),
|
||||
this, SLOT(displayError(QLocalSocket::LocalSocketError)));*/
|
||||
}
|
||||
|
||||
//información de comic recibida...
|
||||
void YACReaderLocalClient::readMessage()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void YACReaderLocalClient::requestComicInfo(QString library, YACReaderComicLibrary & comic)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void YACReaderLocalClient::sendComicInfo(QString library, YACReaderComicLibrary & comic)
|
||||
{
|
||||
|
||||
}
|
27
YACReader/yacreader_local_client.h
Normal file
27
YACReader/yacreader_local_client.h
Normal file
@ -0,0 +1,27 @@
|
||||
#ifndef YACREADER_LOCAL_CLIENT_H
|
||||
#define YACREADER_LOCAL_CLIENT_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class QLocalSocket;
|
||||
class YACReaderComicLibrary;
|
||||
|
||||
class YACReaderLocalClient : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderLocalClient(QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
void readMessage();
|
||||
void requestComicInfo(QString library, YACReaderComicLibrary & comic);
|
||||
void sendComicInfo(QString library, YACReaderComicLibrary & comic);
|
||||
|
||||
private:
|
||||
QLocalSocket * localSocket;
|
||||
|
||||
};
|
||||
|
||||
#endif // YACREADER_LOCAL_CLIENT_H
|
Reference in New Issue
Block a user