summaryrefslogtreecommitdiff
path: root/StructEnumDefinition_UltracopierSpecific.h
blob: 067eb18a0139b0c826ed6e4f4f6068c90f40f171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/** \file StructEnumDefinition_UltracopierSpecific.h
\brief Define the structure and enumeration used in ultracopier only
\author alpha_one_x86
\licence GPL3, see the file COPYING */

#include <string>
#include <vector>
#ifndef ULTRACOPIER_LITTLE
#include <QDomElement>
#endif

#ifndef STRUCTDEF_ULTRACOPIERSPECIFIC_H
#define STRUCTDEF_ULTRACOPIERSPECIFIC_H

enum PluginType : uint8_t
{
    PluginType_Unknow=0,
    PluginType_CopyEngine=1,
    PluginType_Languages=2,
    PluginType_Listener=3,
    PluginType_PluginLoader=4,
    PluginType_SessionLoader=5,
    PluginType_Themes=6
};

/// \brief structure to store the general plugin related information
struct PluginsAvailable
{
    PluginType category;
    std::string path;
    std::string name;
    std::string writablePath;
    #ifndef ULTRACOPIER_LITTLE
    QDomElement categorySpecific;
    #endif
    std::string version;
    std::vector<std::vector<std::string> > informations;
    std::string errorString;
    bool isWritable;
    bool isAuth;
};

enum DebugLevel_custom : uint8_t
{
    DebugLevel_custom_Information=0,
    DebugLevel_custom_Critical=1,
    DebugLevel_custom_Warning=2,
    DebugLevel_custom_Notice=3,
    DebugLevel_custom_UserNote=4
};

enum ActionOnManualOpen : uint8_t
{
    ActionOnManualOpen_Nothing=0x00,
    ActionOnManualOpen_Folder=0x01,
    ActionOnManualOpen_Files=0x02
};

#endif // STRUCTDEF_ULTRACOPIERSPECIFIC_H