mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
44 lines
725 B
C++
44 lines
725 B
C++
#ifndef UNITEDENTRYHELPER_H
|
|
#define UNITEDENTRYHELPER_H
|
|
|
|
#include <QString>
|
|
|
|
#include <core/location.h>
|
|
|
|
class QIcon;
|
|
|
|
namespace vnotex
|
|
{
|
|
class UnitedEntryHelper
|
|
{
|
|
public:
|
|
struct UserEntry
|
|
{
|
|
QString m_name;
|
|
|
|
QString m_args;
|
|
};
|
|
|
|
enum ItemType
|
|
{
|
|
Buffer,
|
|
File,
|
|
Folder,
|
|
Notebook,
|
|
Other,
|
|
MaxItemType
|
|
};
|
|
|
|
UnitedEntryHelper() = delete;
|
|
|
|
static UserEntry parseUserEntry(const QString &p_text);
|
|
|
|
static const QIcon &itemIcon(ItemType p_type);
|
|
|
|
static ItemType locationTypeToItemType(LocationType p_type);
|
|
};
|
|
|
|
}
|
|
|
|
#endif // UNITEDENTRYHELPER_H
|