Reorganized project to avoid the ".pro not found" by having all the
pro files in the same directory. With this change the android library now builds properly. This also fixes the parallel compilation problem that happened when building using +8 cores.
This commit is contained in:
62
gui/trayindicator.h
Normal file
62
gui/trayindicator.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* QCMA: Cross-platform content manager assistant for the PS Vita
|
||||
*
|
||||
* Copyright (C) 2014 Codestation
|
||||
*
|
||||
* 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef TRAYINDICATOR_H
|
||||
#define TRAYINDICATOR_H
|
||||
|
||||
#include <QString>
|
||||
#include <QWidget>
|
||||
|
||||
#include "trayindicator_global.h"
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||
// in Qt4 signals are protected
|
||||
#undef signals
|
||||
#define signals public
|
||||
#endif
|
||||
|
||||
class TrayIndicator : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
~TrayIndicator() {}
|
||||
virtual void init() = 0;
|
||||
virtual bool isVisible() = 0;
|
||||
virtual void setIcon(const QString &icon) = 0;
|
||||
virtual void showMessage(const QString &title, const QString &message) = 0;
|
||||
virtual void show() = 0;
|
||||
virtual void hide() = 0;
|
||||
|
||||
protected:
|
||||
TrayIndicator(QWidget *obj_parent = 0) : QWidget(obj_parent) {}
|
||||
|
||||
signals:
|
||||
void openConfig();
|
||||
void openManager();
|
||||
void refreshDatabase();
|
||||
void showAboutDialog();
|
||||
void showAboutQt();
|
||||
void stopServer();
|
||||
|
||||
};
|
||||
|
||||
typedef TrayIndicator *(*TrayFunctionPointer)(QWidget *parent);
|
||||
extern "C" TRAYINDICATORSHARED_EXPORT TrayIndicator *createTrayIndicator(QWidget *parent = 0);
|
||||
|
||||
#endif // TRAYINDICATOR_H
|
Reference in New Issue
Block a user