Commit da13da89 authored by Lukas Appelhans's avatar Lukas Appelhans

I missed this kinda

parent 556eb1f4
/* This file is part of the Chakra project
Copyright (C) 2011 Lukas Appelhans <l.appelhans@gmx.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
*/
#include "apm.h"
#include <kdebug.h>
#include <QStringList>
#include <QTextStream>
APM::APM(QObject * parent)
: QObject(parent)
{
}
APM::~APM()
{}
void APM::start(OperationType type, QList<Operation> operations, QStringList args)
{
QTextStream out(stdout);
//out << endl;
out << "blub";
out << endl;
out.flush();
kDebug() << "Start";
printf("Start\n");
kDebug() << "Type" << type << "Operations" << operations << "Args" << args;
}
#include "apm.moc"
/* This file is part of the Chakra project
Copyright (C) 2011 Lukas Appelhans <l.appelhans@gmx.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
*/
#ifndef APM_H
#define APM_H
#include <QtCore/QObject>
class APM : public QObject
{
Q_OBJECT
public:
enum OperationType {
NoType = 0,
DatabaseOperation = 1,
QueryOperation = 2,
RemoveOperation = 3,
SyncOperation = 4,
UpgradeOperation = 5
};
enum Operation {
NoOperation = 0,
UpdateDatabases = 1,
UpdateSystem = 2
};
explicit APM(QObject* parent = 0);
virtual ~APM();
void start(OperationType type, QList<Operation> operations, QStringList args);
};
#endif //APM:H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment