summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-08 10:29:25 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-08 10:29:25 +0100
commit07ee4d216a94c59bbded3dc1049f86127e1e770e (patch)
tree9331b32cbeb566c7b2d76b33286619dc8905e0a0 /lib
parent17ce377307201dd6a675ec44db2eb10bbde4519a (diff)
add hash tables for is_public and journey edited bitmasks
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx.pm22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index c0ddf83..e1cca7d 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -169,6 +169,28 @@ sub startup {
);
$self->attr(
+ account_public_mask => sub {
+ return {
+ status_intern => 0x01,
+ status_extern => 0x02,
+ status_comment => 0x04,
+ };
+ }
+ );
+
+ $self->attr(
+ journey_edit_mask => sub {
+ return {
+ sched_departure => 0x0001,
+ real_departure => 0x0002,
+ route => 0x0010,
+ sched_arrival => 0x0100,
+ real_arrival => 0x0200,
+ };
+ }
+ );
+
+ $self->attr(
coordinates_by_station => sub {
my %location;
for