ukui-search/libsearch/appdata/application-info.h

45 lines
1.1 KiB
C
Raw Normal View History

#ifndef APPLICATIONINFO_H
#define APPLICATIONINFO_H
#include <QObject>
#include "application-property.h"
namespace UkuiSearch {
class ApplicationInfoPrivate;
class ApplicationInfo : public QObject
{
Q_OBJECT
public:
explicit ApplicationInfo(QObject *parent = nullptr);
~ApplicationInfo();
/**
* @brief getInfo
* @param desktopFile
* @param property
* @return
*/
QVariant getInfo(const QString &desktopFile, ApplicationProperty::Property property);
/**
* @brief getInfo
* @param desktopFile
* @param properties
* @return
*/
PropertyMap getInfo(const QString &desktopFile, Properties properties);
/**
* @brief getInfo
* @param property
* @return
*/
ApplicationInfoMap getInfo(Properties properties);
//TODO 搜索接口,设置收藏和置顶接口,应用更新卸载信号
private:
ApplicationInfoPrivate *d = nullptr;
};
}
#endif // APPLICATIONINFO_H