Lyskom/DynamicSession.pm

filter: Statementstmt 66.6% 32 / 48 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 38.4% 5 / 13 Podpod 88.8% 8 / 9 totaltotal 63.8% 46 / 72 CC 2 SCAR 5.4
CC
2
Cov
66%
new_from_stream
2.0
session
2.0
person
2.0
CRAP 1.7
« Lyskom/Person.pm ↑ Summary Lyskom/ConfZInfo.pm »
1 package Net::Lyskom::DynamicSession;
2 1 ▶use base qw{Net::Lyskom::Object};
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Net::Lyskom::Util qw{:all};
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 Net::Lyskom::DynamicSession - dynamic session info object
11  
12 =head1 SYNOPSIS
13  
14 print "This session has been idle for ",$obj->idle_time, " seconds.\n";
15  
16 =head1 DESCRIPTION
17  
18 =over
19  
20 =item ->session()
21  
22 Session number.
23  
24 =item ->person()
25  
26 Person number.
27  
28 =item ->working_conference()
29  
30 Number of working conference.
31  
32 =item ->idle_time()
33  
34 Number of seconds idle or number of seconds since session was created.
35  
36 =item ->what_am_i_doing()
37  
38 What the client says it is doing.
39  
40 =item ->invisible()
41  
42 This session has requested that it be invisible.
43  
44 =item ->user_active_used()
45  
46 True if the client has issued a C<user_active> call, which means that
47 the various idle-time counters count idle time rather than time since
48 creation.
49  
50 =item ->user_absent()
51  
52 This flag is not used.
53  
54 =back
55  
56 =cut
57  
58 0 ▶sub session {my $s = shift; return $s->{session}}
Subroutine session: not called CC=1 SCAR=6.9
Pod documented
59 0 ▶sub person {my $s = shift; return $s->{person}}
Subroutine person: not called CC=1 SCAR=6.9
Pod documented
60 0 ▶sub working_conference {my $s = shift; return $s->{working_conference}}
Subroutine working_conference: not called CC=1 SCAR=6.9
Pod documented
61 0 ▶sub idle_time {my $s = shift; return $s->{idle_time}}
Subroutine idle_time: not called CC=1 SCAR=6.9
Pod documented
62 0 ▶sub what_am_i_doing {my $s = shift; return $s->{what_am_i_doing}}
Subroutine what_am_i_doing: not called CC=1 SCAR=6.9
Pod documented
63  
64 0 ▶sub invisible {my $s = shift; return $s->{invisible}}
Subroutine invisible: not called CC=1 SCAR=6.9
Pod documented
65 0 ▶sub user_active_used {my $s = shift; return $s->{user_active_used}}
Subroutine user_active_used: not called CC=1 SCAR=6.9
Pod documented
66 0 ▶sub user_absent {my $s = shift; return $s->{user_absent}}
Subroutine user_absent: not called CC=1 SCAR=6.9
Pod documented
67  
68 111 ▶sub new_from_stream {
Subroutine new_from_stream: called CC=2 SCAR=6.9
Pod undocumented
69 111 my $s = {};
70 111 my $class = shift;
71 111 my $res = shift;
72  
73 111 ▶ $class = ref($class) if ref($class);
Branch: 1 branch
BranchTrueFalseTotal
if ref $class 0 111 111
74 111 bless $s,$class;
75  
76 111 $s->{session} = shift @{$res};
77 111 $s->{person} = shift @{$res};
78 111 $s->{working_conference} = shift @{$res};
79 111 $s->{idle_time} = shift @{$res};
80 111 my $flags = shift @{$res};
81 111 $s->{what_am_i_doing} = shift @{$res};
82  
83 ($s->{invisible}, $s->{user_active_used}, $s->{user_absent})
84 111 = $flags =~ /./g;
85  
86 111 return $s;
87 }
88  
89 1 1;
« Lyskom/Person.pm ↑ Summary Lyskom/ConfZInfo.pm »