From 63881715214743c1dda7423fabaf04d05c00918d Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 27 Jun 2014 15:34:05 +0200 Subject: [PATCH] Stubs for JobQueue and Job. --- src/libcalamares/CMakeLists.txt | 1 + src/libcalamares/Job.cpp | 29 +++++++++++++++++++++++++ src/libcalamares/Job.h | 37 ++++++++++++++++++++++++++++++++ src/libcalamares/JobQueue.cpp | 28 ++++++++++++++++++++++++ src/libcalamares/JobQueue.h | 38 +++++++++++++++++++++++++++++++++ 5 files changed, 133 insertions(+) create mode 100644 src/libcalamares/Job.cpp create mode 100644 src/libcalamares/Job.h diff --git a/src/libcalamares/CMakeLists.txt b/src/libcalamares/CMakeLists.txt index c6e4bfbc4..4ecb8fcd7 100644 --- a/src/libcalamares/CMakeLists.txt +++ b/src/libcalamares/CMakeLists.txt @@ -13,6 +13,7 @@ configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/../calamares/CalamaresVersion.h.in ${CMAKE_CURRENT_BINARY_DIR}/CalamaresVersion.h ) set( libSources + Job.cpp JobQueue.cpp kdsingleapplicationguard/kdsingleapplicationguard.cpp diff --git a/src/libcalamares/Job.cpp b/src/libcalamares/Job.cpp new file mode 100644 index 000000000..beb5bbad3 --- /dev/null +++ b/src/libcalamares/Job.cpp @@ -0,0 +1,29 @@ +/* === This file is part of Calamares - === + * + * Copyright 2014, Teo Mrnjavac + * + * Calamares 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 3 of the License, or + * (at your option) any later version. + * + * Calamares is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Calamares. If not, see . + */ + +#include "Job.h" + +namespace Calamares +{ + +Job::Job( QObject* parent ) + : QObject( parent ) +{ +} + +} // namespace Calamares diff --git a/src/libcalamares/Job.h b/src/libcalamares/Job.h new file mode 100644 index 000000000..adfc6c950 --- /dev/null +++ b/src/libcalamares/Job.h @@ -0,0 +1,37 @@ +/* === This file is part of Calamares - === + * + * Copyright 2014, Teo Mrnjavac + * + * Calamares 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 3 of the License, or + * (at your option) any later version. + * + * Calamares is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Calamares. If not, see . + */ + +#ifndef CALAMARES_JOB_H +#define CALAMARES_JOB_H + +#include "DllMacro.h" + +#include + +namespace Calamares { + +class DLLEXPORT Job : public QObject +{ + Q_OBJECT +public: + explicit Job( QObject* parent = nullptr ); +}; + +} // namespace Calamares + +#endif // CALAMARES_JOB_H diff --git a/src/libcalamares/JobQueue.cpp b/src/libcalamares/JobQueue.cpp index e69de29bb..2f4bf0f6e 100644 --- a/src/libcalamares/JobQueue.cpp +++ b/src/libcalamares/JobQueue.cpp @@ -0,0 +1,28 @@ +/* === This file is part of Calamares - === + * + * Copyright 2014, Teo Mrnjavac + * + * Calamares 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 3 of the License, or + * (at your option) any later version. + * + * Calamares is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Calamares. If not, see . + */ + +#include "JobQueue.h" +namespace Calamares +{ + +JobQueue::JobQueue( QObject* parent ) + : QObject( parent ) +{ +} + +} // namespace Calamares diff --git a/src/libcalamares/JobQueue.h b/src/libcalamares/JobQueue.h index e69de29bb..716bebb2c 100644 --- a/src/libcalamares/JobQueue.h +++ b/src/libcalamares/JobQueue.h @@ -0,0 +1,38 @@ +/* === This file is part of Calamares - === + * + * Copyright 2014, Teo Mrnjavac + * + * Calamares 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 3 of the License, or + * (at your option) any later version. + * + * Calamares is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Calamares. If not, see . + */ + +#ifndef CALAMARES_JOBQUEUE_H +#define CALAMARES_JOBQUEUE_H + +#include "DllMacro.h" + +#include + +namespace Calamares +{ + +class DLLEXPORT JobQueue : public QObject +{ + Q_OBJECT +public: + explicit JobQueue( QObject* parent = nullptr ); +}; + +} + +#endif // CALAMARES_JOBQUEUE_H