yacreader/YACReaderLibrary/yacreader_local_server.h
Luis Ángel San Martín 79fe9a3f2d Reading status added
sending comic info to yacreaderlibrary on openNext/openPrevious
2013-07-21 23:18:50 +02:00

29 lines
664 B
C++

#ifndef YACREADER_LOCAL_SERVER_H
#define YACREADER_LOCAL_SERVER_H
#include <QObject>
class QLocalServer;
class ComicDB;
class YACReaderLocalServer : public QObject
{
Q_OBJECT
public:
explicit YACReaderLocalServer(QObject *parent = 0);
signals:
void comicUpdated(quint64 libraryId, const ComicDB & comic);
public slots:
bool isListening();
void sendResponse();
static bool isRunning();
void getComicInfo(quint64 libraryId, ComicDB & comic, QList<ComicDB> & sibling);
void updateComic(quint64 libraryId, ComicDB & comic);
private:
QLocalServer * localServer;
};
#endif // YACREADER_LOCAL_SERVER_H