line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::KeePass::KDBX::Tie::CustomIcons; |
2
|
|
|
|
|
|
|
# ABSTRACT: Database custom icons |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
1019
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
77
|
|
5
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
57
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
9
|
use parent 'File::KeePass::KDBX::Tie::Hash'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
9
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.900'; # VERSION |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub keys { |
12
|
14
|
|
|
14
|
0
|
26
|
my $self = shift; |
13
|
14
|
|
|
|
|
37
|
my ($kdbx) = @$self; |
14
|
14
|
|
|
|
|
21
|
return [map { $_->{uuid} } @{$kdbx->custom_icons}]; |
|
0
|
|
|
|
|
0
|
|
|
14
|
|
|
|
|
43
|
|
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
0
|
0
|
|
sub default_getter { my $uuid = $_[1]; sub { $_[0]->custom_icon($uuid)->{data} } } |
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
0
|
|
sub default_setter { my $uuid = $_[1]; sub { $_[0]->custom_icon($uuid, $_) } } |
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |