[submodule "gnupg"]
- path = gnupg
+ path = aurora/gnupg
url = git://git.gnupg.org/gnupg.git
[submodule "libassuan"]
- path = libassuan
+ path = aurora/libassuan
url = git://git.gnupg.org/libassuan.git
[submodule "gpgme"]
- path = gpgme
+ path = aurora/gpgme
url = git://git.gnupg.org/gpgme.git
[submodule "libgpg-error"]
- path = libgpg-error
+ path = aurora/libgpg-error
url = git://git.gnupg.org/libgpg-error.git
--- /dev/null
+TEMPLATE = lib
+TARGET = Aurora
+DESTDIR = $$PWD/../lib
+QT -= gui
+QT += network xml
+CONFIG += dll create_prl hide_symbols separate_debug_info
+
+OBJECTS_DIR = .ctmp
+MOC_DIR = .ctmp
+RCC_DIR = .ctmp
+
+VERSION = 0.2.0
+
+SOURCES += src/aurora.cpp
+
+HEADERS += src/aurora.h
+
+INCLUDEPATH += src
+DEPENDPATH += $$INCLUDEPATH
\ No newline at end of file
//
#include "aurora.h"
-#include "aurora_p.h"
#include <QDebug>
#include <QSettings>
Aurora::Aurora(QObject* parent):QObject(parent)
{
- d=new AuroraPrivate(this);
+ d=new AuroraPrivate;
+ //make sure the timer triggers
+ startPoll();
}
Aurora::~Aurora()
static const QString AuroraGroup("aurora_updater");
-AuroraPrivate::AuroraPrivate(QObject* parent)
+AuroraPrivate::AuroraPrivate()
:state(Aurora::Initializing),pollint(0),polltmr(0)
{
QSettings cfg;
cfg.beginGroup(AuroraGroup);
url=cfg.value("baseurl").toUrl();
+ pollint=cfg.value("pollintervall",0).toInt();
}
void Aurora::setBaseUrl(QUrl u)
void Aurora::startPoll(int intervalInSeconds)
{
- if(intervalInSeconds>=0)
+ if(intervalInSeconds>=0){
d->pollint=intervalInSeconds;
+ QSettings cfg;
+ cfg.beginGroup(AuroraGroup);
+ cfg.setValue("pollintervall",d->pollint);
+ }
if(d->polltmr){
delete d->polltmr;
d->polltmr=0;
{
}
-