summaryrefslogtreecommitdiffstats
path: root/PerlTQt/lib/Qt/constants.pm
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-01-01 18:29:30 -0600
committerTimothy Pearson <[email protected]>2012-01-01 18:29:30 -0600
commitb2af005db21bd8fd068cb79b2ae700953128af2c (patch)
treeabd0ed633726bf0bbecb57d30e92836c31e02695 /PerlTQt/lib/Qt/constants.pm
parentc1b9383f2032d82db5eb8918dca885e37a901dde (diff)
downloadlibtqt-perl-b2af005db21bd8fd068cb79b2ae700953128af2c.tar.gz
libtqt-perl-b2af005db21bd8fd068cb79b2ae700953128af2c.zip
Move PerlQt
Diffstat (limited to 'PerlTQt/lib/Qt/constants.pm')
-rw-r--r--PerlTQt/lib/Qt/constants.pm62
1 files changed, 62 insertions, 0 deletions
diff --git a/PerlTQt/lib/Qt/constants.pm b/PerlTQt/lib/Qt/constants.pm
new file mode 100644
index 0000000..5bdeed0
--- /dev/null
+++ b/PerlTQt/lib/Qt/constants.pm
@@ -0,0 +1,62 @@
+package TQt::constants;
+
+require Exporter;
+
+our @ISA = qw(Exporter);
+our @EXPORT = qw(
+ IO_Direct
+ IO_Sequential
+ IO_Combined
+ IO_TypeMask
+ IO_Raw
+ IO_Async
+ IO_ReadOnly
+ IO_WriteOnly
+ IO_ReadWrite
+ IO_Append
+ IO_Truncate
+ IO_Translate
+ IO_ModeMask
+ IO_Open
+ IO_StateMask
+ IO_Ok
+ IO_ReadError
+ IO_WriteError
+ IO_FatalError
+ IO_ResourceError
+ IO_OpenError
+ IO_ConnectError
+ IO_AbortError
+ IO_TimeOutError
+ IO_UnspecifiedError
+);
+
+our %EXPORT_TAGS = ( 'IO' => [ @EXPORT ] );
+
+sub IO_Direct () { 0x0100 }
+sub IO_Sequential () { 0x0200 }
+sub IO_Combined () { 0x0300 }
+sub IO_TypeMask () { 0x0f00 }
+sub IO_Raw () { 0x0040 }
+sub IO_Async () { 0x0080 }
+sub IO_ReadOnly () { 0x0001 }
+sub IO_WriteOnly () { 0x0002 }
+sub IO_ReadWrite () { 0x0003 }
+sub IO_Append () { 0x0004 }
+sub IO_Truncate () { 0x0008 }
+sub IO_Translate () { 0x0010 }
+sub IO_ModeMask () { 0x00ff }
+sub IO_Open () { 0x1000 }
+sub IO_StateMask () { 0xf000 }
+sub IO_Ok () { 0 }
+sub IO_ReadError () { 1 }
+sub IO_WriteError () { 2 }
+sub IO_FatalError () { 3 }
+sub IO_ResourceError () { 4 }
+sub IO_OpenError () { 5 }
+sub IO_ConnectError () { 5 }
+sub IO_AbortError () { 6 }
+sub IO_TimeOutError () { 7 }
+sub IO_UnspecifiedError() { 8 }
+
+1; \ No newline at end of file