| 1 |
#ifndef _WDX_H |
| 2 |
#define _WDX_H |
| 3 |
|
| 4 |
#include "common.h" |
| 5 |
|
| 6 |
// Contents of file contplug.h version 2.0 |
| 7 |
|
| 8 |
#define ft_nomorefields 0 |
| 9 |
#define ft_numeric_32 1 |
| 10 |
#define ft_numeric_64 2 |
| 11 |
#define ft_numeric_floating 3 |
| 12 |
#define ft_date 4 |
| 13 |
#define ft_time 5 |
| 14 |
#define ft_boolean 6 |
| 15 |
#define ft_multiplechoice 7 |
| 16 |
#define ft_string 8 |
| 17 |
#define ft_fulltext 9 |
| 18 |
#define ft_datetime 10 |
| 19 |
#define ft_stringw 11 |
| 20 |
#define ft_fulltextw 12 |
| 21 |
|
| 22 |
// for ContentGetValue |
| 23 |
#define ft_nosuchfield -1 // error, invalid field number given |
| 24 |
#define ft_fileerror -2 // file i/o error |
| 25 |
#define ft_fieldempty -3 // field valid, but empty |
| 26 |
|
| 27 |
#define ft_ondemand -4 // field will be retrieved only when user presses <SPACEBAR> |
| 28 |
#define ft_notsupported -5 // function not supported |
| 29 |
#define ft_setcancel -6 // user clicked cancel in field editor |
| 30 |
#define ft_delayed 0 // field takes a long time to extract -> try again in background |
| 31 |
|
| 32 |
// for ContentSetValue |
| 33 |
#define ft_setsuccess 0 // setting of the attribute succeeded |
| 34 |
|
| 35 |
// for ContentGetSupportedFieldFlags |
| 36 |
#define contflags_edit 1 |
| 37 |
#define contflags_substsize 2 |
| 38 |
|
| 39 |
#define contflags_substdatetime 4 |
| 40 |
#define contflags_substdate 6 |
| 41 |
#define contflags_substtime 8 |
| 42 |
#define contflags_substattributes 10 |
| 43 |
#define contflags_substattributestr 12 |
| 44 |
#define contflags_passthrough_size_float 14 |
| 45 |
#define contflags_substmask 14 |
| 46 |
#define contflags_fieldedit 16 |
| 47 |
|
| 48 |
#define contst_readnewdir 1 |
| 49 |
#define contst_refreshpressed 2 |
| 50 |
#define contst_showhint 4 |
| 51 |
|
| 52 |
#define setflags_first_attribute 1 // First attribute of this file |
| 53 |
#define setflags_last_attribute 2 // Last attribute of this file |
| 54 |
|
| 55 |
#define setflags_only_date 4 // Only set the date of the datetime value! |
| 56 |
|
| 57 |
#define editflags_initialize 1 // The data passed to the plugin may be used to |
| 58 |
// initialize the edit dialog |
| 59 |
|
| 60 |
#define CONTENT_DELAYIFSLOW 1 // ContentGetValue called in foreground |
| 61 |
#define CONTENT_PASSTHROUGH 2 // If requested via contflags_passthrough_size_float: The size |
| 62 |
// is passed in as floating value, TC expects correct value |
| 63 |
|
| 64 |
// from the given units value, and optionally a text string |
| 65 |
|
| 66 |
typedef struct { |
| 67 |
int size; |
| 68 |
DWORD PluginInterfaceVersionLow; |
| 69 |
DWORD PluginInterfaceVersionHi; |
| 70 |
char DefaultIniName[MAX_PATH]; |
| 71 |
} ContentDefaultParamStruct; |
| 72 |
|
| 73 |
typedef struct { |
| 74 |
|
| 75 |
WORD wYear; |
| 76 |
WORD wMonth; |
| 77 |
WORD wDay; |
| 78 |
} tdateformat,*pdateformat; |
| 79 |
|
| 80 |
typedef struct { |
| 81 |
WORD wHour; |
| 82 |
WORD wMinute; |
| 83 |
WORD wSecond; |
| 84 |
} ttimeformat,*ptimeformat; |
| 85 |
|
| 86 |
#ifdef __cplusplus |
| 87 |
extern "C" { |
| 88 |
#endif |
| 89 |
|
| 90 |
int DCPCALL ContentGetDetectString(char* DetectString,int maxlen); |
| 91 |
int DCPCALL ContentGetSupportedField(int FieldIndex,char* FieldName,char* Units,int maxlen); |
| 92 |
int DCPCALL ContentGetValue(char* FileName,int FieldIndex,int UnitIndex,void* FieldValue,int maxlen,int flags); |
| 93 |
int DCPCALL ContentGetValueW(WCHAR* FileName,int FieldIndex,int UnitIndex,void* FieldValue,int maxlen,int flags); |
| 94 |
|
| 95 |
void DCPCALL ContentSetDefaultParams(ContentDefaultParamStruct* dps); |
| 96 |
void DCPCALL ContentPluginUnloading(void); |
| 97 |
void DCPCALL ContentStopGetValue(char* FileName); |
| 98 |
void DCPCALL ContentStopGetValueW(WCHAR* FileName); |
| 99 |
int DCPCALL ContentGetDefaultSortOrder(int FieldIndex); |
| 100 |
int DCPCALL ContentGetSupportedFieldFlags(int FieldIndex); |
| 101 |
int DCPCALL ContentSetValue(char* FileName,int FieldIndex,int UnitIndex,int FieldType,void* FieldValue,int flags); |
| 102 |
int DCPCALL ContentSetValueW(WCHAR* FileName,int FieldIndex,int UnitIndex,int FieldType,void* FieldValue,int flags); |
| 103 |
|
| 104 |
int DCPCALL ContentEditValue(HWND ParentWin,int FieldIndex,int UnitIndex,int FieldType, |
| 105 |
void* FieldValue,int maxlen,int flags,char* langidentifier); |
| 106 |
void DCPCALL ContentSendStateInformation(int state,char* path); |
| 107 |
void DCPCALL ContentSendStateInformationW(int state,WCHAR* path); |
| 108 |
|
| 109 |
#ifdef __cplusplus |
| 110 |
} |
| 111 |
#endif |
| 112 |
|
| 113 |
#endif // _WDX_H |