diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
commit | 48540940b6c28bb4378abfeb500ec45a625b37b6 (patch) | |
tree | 2ef294c0763e802f91d868bdef4229b6868527de /plugins/ImportTXT/ImportT.pas | |
parent | 5c350913f011e119127baeb32a6aedeb4f0d33bc (diff) |
initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ImportTXT/ImportT.pas')
-rw-r--r-- | plugins/ImportTXT/ImportT.pas | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/plugins/ImportTXT/ImportT.pas b/plugins/ImportTXT/ImportT.pas new file mode 100644 index 0000000000..4976d2cc39 --- /dev/null +++ b/plugins/ImportTXT/ImportT.pas @@ -0,0 +1,82 @@ +unit ImportT;
+interface
+
+type
+
+ RHeader = record
+ Pattern:string;
+ Incoming:integer;
+ Outgoing:integer;
+ InNick:integer;
+ OutNick:integer;
+ InUID:integer;
+ OutUID:integer;
+ end;
+
+ RPreMessage = record
+ PreRN:integer;
+ AfterRN:integer;
+ PreSP:integer;
+ AfterSP:integer;
+ end;
+
+ RMessage = record
+ Pattern:string;
+ Incoming:string;
+ Outgoing:string;
+ Direction:integer;
+ Day:integer;
+ Month:integer;
+ Year:integer;
+ Hours:integer;
+ Minutes:integer;
+ Seconds:integer;
+ end;
+
+ RFileName = record
+ Pattern:string;
+ InNick:integer;
+ OutNick:integer;
+ InUID:integer;
+ OutUID:integer;
+ end;
+
+ RTxtPattern = record
+ Name:string;
+ IType:byte; //1 -text,2- binary, 3 - ...
+ Charset:word;
+ Codepage:Cardinal;
+ DefExtension:string;
+ BinProc:word;
+ UseHeader:Byte;
+ UseFileName:ByteBool;
+ UsePreMsg:ByteBool;
+ Msg:RMessage;
+ Header:RHeader;
+ PreMsg:RPreMessage;
+ FName:RFileName;
+ end;
+
+const
+ inANSI = 1;
+ inUTF8 = 2;
+ inUCS2 = 3;
+
+type PDestProto = ^TDestProto;
+ TDestProto = record
+ ProtoName: string;
+ ProtoUID: string;
+ ProtoNick: string;
+ end;
+
+type PDestContact = ^TDestContact;
+ TDestContact = record
+ hContact: THandle;
+ ProtoName: string;
+ ContactUID: string;
+ ContactNick: string;
+ end;
+
+implementation
+
+end.
|