mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-05-08 07:29:43 +00:00
fix name
This commit is contained in:
parent
09bb8b740c
commit
920ca5e046
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
QT -= gui
|
QT -= gui
|
||||||
|
|
||||||
TARGET = QuasaraApp
|
TARGET = QuasarApp
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
DEFINES += QUASARAAPP_LIBRARY
|
DEFINES += QUASARAAPP_LIBRARY
|
||||||
@ -30,11 +30,11 @@ CONFIG(debug, debug|release): {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
quasaraapp.cpp
|
quasarapp.cpp
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
quasaraapp.h \
|
quasarapp.h \
|
||||||
quasaraapp_global.h
|
quasarapp_global.h
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
target.path = /usr/lib
|
target.path = /usr/lib
|
@ -15,6 +15,6 @@ CONFIG(debug, debug|release): {
|
|||||||
OUTPUT_DIR_QUASARAPP = "$$PWD/build/release/bin"
|
OUTPUT_DIR_QUASARAPP = "$$PWD/build/release/bin"
|
||||||
}
|
}
|
||||||
|
|
||||||
LIBS += -L"$$OUTPUT_DIR_QUASARAPP/" -lQuasaraApp
|
LIBS += -L"$$OUTPUT_DIR_QUASARAPP/" -lQuasarApp
|
||||||
|
|
||||||
INCLUDEPATH += "$$PWD/"
|
INCLUDEPATH += "$$PWD/"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* of this license document, but changing it is not allowed.
|
* of this license document, but changing it is not allowed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "quasaraapp.h"
|
#include "quasarapp.h"
|
||||||
#include <QVariantMap>
|
#include <QVariantMap>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
static QVariantMap params = QVariantMap();
|
static QVariantMap params = QVariantMap();
|
||||||
|
|
||||||
bool QuasaraAppUtils::parseParams(int argc, char *argv[]) {
|
bool QuasarAppUtils::parseParams(int argc, char *argv[]) {
|
||||||
params.clear();
|
params.clear();
|
||||||
params ["appPath"] = argv[0];
|
params ["appPath"] = argv[0];
|
||||||
|
|
||||||
@ -33,15 +33,15 @@ bool QuasaraAppUtils::parseParams(int argc, char *argv[]) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString QuasaraAppUtils::getStr(const QString& key) {
|
QString QuasarAppUtils::getStrArg(const QString& key) {
|
||||||
return params.value(key, "").toString();
|
return params.value(key, "").toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant QuasaraAppUtils::get(const QString& key) {
|
QVariant QuasarAppUtils::getArg(const QString& key) {
|
||||||
return params.value(key, "");
|
return params.value(key, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QuasaraAppUtils::isEndable(const QString& key) {
|
bool QuasarAppUtils::isEndable(const QString& key) {
|
||||||
return params.contains(key);
|
return params.contains(key);
|
||||||
}
|
}
|
||||||
|
|
@ -8,7 +8,7 @@
|
|||||||
#ifndef QUASARAAPP_H
|
#ifndef QUASARAAPP_H
|
||||||
#define QUASARAAPP_H
|
#define QUASARAAPP_H
|
||||||
|
|
||||||
#include "quasaraapp_global.h"
|
#include "quasarapp_global.h"
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
|
|
||||||
|
|
||||||
@ -20,11 +20,11 @@ class QTranslator;
|
|||||||
* this lib include base functions for the all applications of QuasarApp group.
|
* this lib include base functions for the all applications of QuasarApp group.
|
||||||
* all methods of the Quasar AppUtils is static
|
* all methods of the Quasar AppUtils is static
|
||||||
*/
|
*/
|
||||||
class QUASARAAPPSHARED_EXPORT QuasaraAppUtils
|
class QUASARAPPSHARED_EXPORT QuasarAppUtils
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QuasaraAppUtils() = delete;
|
QuasarAppUtils() = delete;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief parseParams - parase input data of started application
|
* @brief parseParams - parase input data of started application
|
@ -4,9 +4,9 @@
|
|||||||
#include <QtCore/qglobal.h>
|
#include <QtCore/qglobal.h>
|
||||||
|
|
||||||
#if defined(QUASARAAPP_LIBRARY)
|
#if defined(QUASARAAPP_LIBRARY)
|
||||||
# define QUASARAAPPSHARED_EXPORT Q_DECL_EXPORT
|
# define QUASARAPPSHARED_EXPORT Q_DECL_EXPORT
|
||||||
#else
|
#else
|
||||||
# define QUASARAAPPSHARED_EXPORT Q_DECL_IMPORT
|
# define QUASARAPPSHARED_EXPORT Q_DECL_IMPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // QUASARAAPP_GLOBAL_H
|
#endif // QUASARAAPP_GLOBAL_H
|
Loading…
x
Reference in New Issue
Block a user