Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Chakra
Akabei
Akabei frontend
Commits
da13da89
Commit
da13da89
authored
Mar 30, 2011
by
Lukas Appelhans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I missed this kinda
parent
556eb1f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
0 deletions
+74
-0
apm.cpp
apm.cpp
+36
-0
apm.h
apm.h
+38
-0
No files found.
apm.cpp
0 → 100644
View file @
da13da89
/* 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"
apm.h
0 → 100644
View file @
da13da89
/* 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment