You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
719 B
C++

#ifndef LP_APPMANAGER_H__
#define LP_APPMANAGER_H__
#include "QTpSingletonBase.h"
#include <QtCore>
#include <QtCore\qobject.h>
#include <QList>
#include <QMap>
#include <QMutex>
#include <QSharedPointer>
#include "GlobalFunction.h"
#include "AppInstance.h"
class CAppManager : public QObject, public CSingletonBase < CAppManager >
{
Q_OBJECT
public:
CAppManager();
~CAppManager();
virtual void close();
QList<QString> getAllApps() const { return m_appslist; }
void logmsg(emTPALogLevel level, const QString& msg);
private:
void init();
void initLogger();
private:
QMutex m_mutex;
bool m_bInited;
bool m_bClosed;
QList<QString> m_appslist;
QString m_sLoggerName;
};
#endif //LP_APPMANAGER_H__