Implement online mode: now qcma can connect to the Internet to check and download update files.

Update embedded xml file.
Updated translations.
This commit is contained in:
codestation
2014-01-05 20:58:46 -04:30
parent a0d9e03d17
commit 88d51420e7
13 changed files with 371 additions and 46 deletions

View File

@@ -22,7 +22,9 @@
#include "cmaobject.h"
#include "database.h"
#include "httpdownloader.h"
#include <QNetworkReply>
#include <QObject>
#include <QSemaphore>
@@ -61,8 +63,9 @@ private:
void vitaEventSendObjectMetadataItems(vita_event_t *event, int eventId);
void vitaEventSendNPAccountInfo(vita_event_t *event, int eventId);
static int readCallback(unsigned char *data, unsigned long wantlen, unsigned long *gotlen);
static int writeCallback(const unsigned char *data, unsigned long size, unsigned long *written);
static int readCallback(unsigned char *data, int64_t wantlen, int64_t *gotlen);
static int writeCallback(const unsigned char *data, int64_t size, int64_t *written);
static int readHTTPCallback(unsigned char *data, int64_t wantlen, int64_t *gotlen);
void processEvent();
bool isActive();
@@ -83,6 +86,7 @@ private:
signals:
void finishedEventLoop();
void refreshDatabase();
void messageSent(QString);
public slots:
void process();