Changeset View
Changeset View
Standalone View
Standalone View
src/core/jobuidelegateextension.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 38 | enum RenameDialog_Option { | |||
---|---|---|---|---|---|
42 | RenameDialog_MultipleItems = 8, ///< Set if the current operation concerns multiple files, so it makes sense to offer buttons that apply the user's choice to all files/folders. | 42 | RenameDialog_MultipleItems = 8, ///< Set if the current operation concerns multiple files, so it makes sense to offer buttons that apply the user's choice to all files/folders. | ||
43 | RenameDialog_Resume = 16, ///< Offer a "Resume" button (plus "Resume All" if RenameDialog_MultipleItems). | 43 | RenameDialog_Resume = 16, ///< Offer a "Resume" button (plus "Resume All" if RenameDialog_MultipleItems). | ||
44 | RenameDialog_NoRename = 64, ///< Don't offer a "Rename" button. | 44 | RenameDialog_NoRename = 64, ///< Don't offer a "Rename" button. | ||
45 | RenameDialog_IsDirectory = 128 ///< The destination is a directory, the dialog updates labels and tooltips accordingly. | 45 | RenameDialog_IsDirectory = 128 ///< The destination is a directory, the dialog updates labels and tooltips accordingly. | ||
46 | }; | 46 | }; | ||
47 | Q_DECLARE_FLAGS(RenameDialog_Options, RenameDialog_Option) | 47 | Q_DECLARE_FLAGS(RenameDialog_Options, RenameDialog_Option) | ||
48 | 48 | | |||
49 | // For compat | 49 | // For compat | ||
50 | #ifndef KIOCORE_NO_DEPRECATED | 50 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(5, 0) | ||
51 | /** | 51 | /** | ||
52 | * @deprecated since 5.0, use the RenameDialog_Option enum values | 52 | * @deprecated since 5.0, use the RenameDialog_Option enum values | ||
53 | */ | 53 | */ | ||
54 | enum { | 54 | enum { | ||
55 | M_OVERWRITE = RenameDialog_Overwrite, | 55 | M_OVERWRITE = RenameDialog_Overwrite, | ||
56 | M_OVERWRITE_ITSELF = RenameDialog_OverwriteItself, | 56 | M_OVERWRITE_ITSELF = RenameDialog_OverwriteItself, | ||
57 | M_SKIP = RenameDialog_Skip, | 57 | M_SKIP = RenameDialog_Skip, | ||
58 | M_MULTI = RenameDialog_MultipleItems, | 58 | M_MULTI = RenameDialog_MultipleItems, | ||
59 | M_RESUME = RenameDialog_Resume, | 59 | M_RESUME = RenameDialog_Resume, | ||
60 | M_NORENAME = RenameDialog_NoRename, | 60 | M_NORENAME = RenameDialog_NoRename, | ||
61 | M_ISDIR = RenameDialog_IsDirectory | 61 | M_ISDIR = RenameDialog_IsDirectory | ||
62 | }; | 62 | }; | ||
63 | /** | 63 | /** | ||
64 | * @deprecated since 5.0, use RenameDialog_Options | 64 | * @deprecated since 5.0, use RenameDialog_Options | ||
65 | */ | 65 | */ | ||
66 | #ifndef KIOCORE_NO_DEPRECATED | 66 | KIOCORE_DEPRECATED_VERSION(5, 0, "Use KIO::RenameDialog_Options") | ||
67 | KIOCORE_DEPRECATED typedef RenameDialog_Options RenameDialog_Mode; | 67 | typedef RenameDialog_Options RenameDialog_Mode; | ||
68 | #endif | | |||
69 | #endif | 68 | #endif | ||
70 | 69 | | |||
71 | /** | 70 | /** | ||
72 | * SkipDialog_MultipleItems: Set if the current operation concerns multiple files, so it makes sense | 71 | * SkipDialog_MultipleItems: Set if the current operation concerns multiple files, so it makes sense | ||
73 | * to offer buttons that apply the user's choice to all files/folders. | 72 | * to offer buttons that apply the user's choice to all files/folders. | ||
74 | * @since 5.0 | 73 | * @since 5.0 | ||
75 | */ | 74 | */ | ||
76 | enum SkipDialog_Option { | 75 | enum SkipDialog_Option { | ||
Show All 12 Lines | 83 | enum RenameDialog_Result { | |||
89 | Result_Overwrite = 4, | 88 | Result_Overwrite = 4, | ||
90 | Result_OverwriteAll = 5, | 89 | Result_OverwriteAll = 5, | ||
91 | Result_Resume = 6, | 90 | Result_Resume = 6, | ||
92 | Result_ResumeAll = 7, | 91 | Result_ResumeAll = 7, | ||
93 | Result_AutoRename = 8, | 92 | Result_AutoRename = 8, | ||
94 | Result_Retry = 9, | 93 | Result_Retry = 9, | ||
95 | 94 | | |||
96 | // @deprecated since 5.0, use the RenameDialog_Option enum values | 95 | // @deprecated since 5.0, use the RenameDialog_Option enum values | ||
96 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
97 | R_CANCEL = Result_Cancel, | 97 | R_CANCEL = Result_Cancel, | ||
98 | R_RENAME = Result_Rename, | 98 | R_RENAME = Result_Rename, | ||
99 | R_SKIP = Result_Skip, | 99 | R_SKIP = Result_Skip, | ||
100 | R_AUTO_SKIP = Result_AutoSkip, | 100 | R_AUTO_SKIP = Result_AutoSkip, | ||
101 | R_OVERWRITE = Result_Overwrite, | 101 | R_OVERWRITE = Result_Overwrite, | ||
102 | R_OVERWRITE_ALL = Result_OverwriteAll, | 102 | R_OVERWRITE_ALL = Result_OverwriteAll, | ||
103 | R_RESUME = Result_Resume, | 103 | R_RESUME = Result_Resume, | ||
104 | R_RESUME_ALL = Result_ResumeAll, | 104 | R_RESUME_ALL = Result_ResumeAll, | ||
105 | R_AUTO_RENAME = Result_AutoRename, | 105 | R_AUTO_RENAME = Result_AutoRename, | ||
106 | R_RETRY = Result_Retry, | 106 | R_RETRY = Result_Retry, | ||
107 | 107 | | |||
108 | S_CANCEL = Result_Cancel, | 108 | S_CANCEL = Result_Cancel, | ||
109 | S_SKIP = Result_Skip, | 109 | S_SKIP = Result_Skip, | ||
110 | S_AUTO_SKIP = Result_AutoSkip, | 110 | S_AUTO_SKIP = Result_AutoSkip, | ||
111 | S_RETRY = Result_Retry | 111 | S_RETRY = Result_Retry | ||
112 | #endif | ||||
112 | }; | 113 | }; | ||
113 | typedef RenameDialog_Result SkipDialog_Result; | 114 | typedef RenameDialog_Result SkipDialog_Result; | ||
114 | 115 | | |||
115 | /** | 116 | /** | ||
116 | * @class KIO::JobUiDelegateExtension jobuidelegateextension.h <KIO/JobUiDelegateExtension> | 117 | * @class KIO::JobUiDelegateExtension jobuidelegateextension.h <KIO/JobUiDelegateExtension> | ||
117 | * | 118 | * | ||
118 | * An abstract class defining interaction with users from KIO jobs: | 119 | * An abstract class defining interaction with users from KIO jobs: | ||
119 | * \li asking what to do in case of a conflict while copying/moving files or directories | 120 | * \li asking what to do in case of a conflict while copying/moving files or directories | ||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |