Constants for all the config types. More...
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | DT_ADDRESS 1 |
e-mail address More... | |
#define | DT_BOOL 2 |
boolean option More... | |
#define | DT_ENUM 4 |
an enumeration More... | |
#define | DT_HCACHE 5 |
header cache backend More... | |
#define | DT_LONG 6 |
a number (long) More... | |
#define | DT_MBTABLE 8 |
multibyte char table More... | |
#define | DT_NUMBER 9 |
a number More... | |
#define | DT_QUAD 11 |
quad-option (no/yes/ask-no/ask-yes) More... | |
#define | DT_REGEX 12 |
regular expressions More... | |
#define | DT_SLIST 13 |
a list of strings More... | |
#define | DT_SORT 14 |
sorting methods More... | |
#define | DT_STRING 15 |
a string More... | |
#define | DT_SYNONYM 16 |
synonym for another variable More... | |
#define | DTYPE(x) ((x) & 0x1F) |
Mask for the Data Type. More... | |
#define | DT_NOT_EMPTY (1 << 6) |
Empty strings are not allowed. More... | |
#define | DT_NOT_NEGATIVE (1 << 7) |
Negative numbers are not allowed. More... | |
#define | DT_MAILBOX (1 << 8) |
Don't perform path expansions. More... | |
#define | DT_SENSITIVE (1 << 9) |
Contains sensitive value, e.g. password. More... | |
#define | DT_PATH (1 << 10) |
A pathname. More... | |
#define | DT_COMMAND (1 << 11) |
A command. More... | |
#define | DT_INHERIT_ACC (1 << 12) |
Config item can be Account-specific. More... | |
#define | DT_INHERIT_MBOX (1 << 13) |
Config item can be Mailbox-specific. More... | |
#define | IS_SENSITIVE(x) (((x).type & DT_SENSITIVE) == DT_SENSITIVE) |
#define | IS_PATH(x) (((x)->type & (DT_STRING | DT_PATH)) == (DT_STRING | DT_PATH)) |
#define | IS_COMMAND(x) (((x)->type & (DT_STRING | DT_COMMAND)) == (DT_STRING | DT_COMMAND)) |
#define | DT_SUBTYPE_MASK 0x0FE0 |
Mask for the Data Subtype. More... | |
#define | R_REDRAW_NO_FLAGS 0 |
No refresh/resort flags. More... | |
#define | R_INDEX (1 << 17) |
Redraw the index menu (MENU_MAIN) More... | |
#define | R_PAGER (1 << 18) |
Redraw the pager menu. More... | |
#define | R_PAGER_FLOW (1 << 19) |
Reflow line_info and redraw the pager menu. More... | |
#define | R_RESORT (1 << 20) |
Resort the mailbox. More... | |
#define | R_RESORT_SUB (1 << 21) |
Resort subthreads. More... | |
#define | R_RESORT_INIT (1 << 22) |
Resort from scratch. More... | |
#define | R_TREE (1 << 23) |
Redraw the thread tree. More... | |
#define | R_REFLOW (1 << 24) |
Reflow window layout and full redraw. More... | |
#define | R_SIDEBAR (1 << 25) |
Redraw the sidebar. More... | |
#define | R_MENU (1 << 26) |
Redraw all menus. More... | |
#define | R_REDRAW_MASK 0x07FE0000 |
Mask for the Redraw Flags. More... | |
#define | DT_DEPRECATED (1 << 27) |
Config item shouldn't be used any more. More... | |
#define | DT_INHERITED (1 << 28) |
Config item is inherited. More... | |
#define | DT_INITIAL_SET (1 << 29) |
Config item must have its initial value freed. More... | |
#define | DT_DISABLED (1 << 30) |
Config item is disabled. More... | |
#define | DT_MY_CONFIG (1 << 31) |
Config item is a "my_" variable. More... | |
Typedefs | |
typedef uint32_t | ConfigRedrawFlags |
Flags for redraw/resort, e.g. R_INDEX. More... | |
Constants for all the config types.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file types.h.
#define DT_NOT_NEGATIVE (1 << 7) |
#define DT_SENSITIVE (1 << 9) |
#define DT_INHERIT_ACC (1 << 12) |
#define DT_INHERIT_MBOX (1 << 13) |
#define IS_SENSITIVE | ( | x | ) | (((x).type & DT_SENSITIVE) == DT_SENSITIVE) |
#define IS_COMMAND | ( | x | ) | (((x)->type & (DT_STRING | DT_COMMAND)) == (DT_STRING | DT_COMMAND)) |
#define R_PAGER_FLOW (1 << 19) |
#define R_REFLOW (1 << 24) |
#define DT_DEPRECATED (1 << 27) |
#define DT_INITIAL_SET (1 << 29) |
#define DT_MY_CONFIG (1 << 31) |
typedef uint32_t ConfigRedrawFlags |