| 1 | package Net::UPnP::AV::Content; | ||||||||||
| 2 | |||||||||||
| 3 | #----------------------------------------------------------------- | ||||||||||
| 4 | # Net::UPnP::AV::Content | ||||||||||
| 5 | #----------------------------------------------------------------- | ||||||||||
| 6 | |||||||||||
| 7 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 3 | ▶ | use vars qw($_ID $_TITLE $_DATE); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 3 | $_ID = '_id'; | |||||||||
| 13 | 3 | $_TITLE = '_title'; | |||||||||
| 14 | 3 | $_DATE = '_date'; | |||||||||
| 15 | |||||||||||
| 16 | #------------------------------ | ||||||||||
| 17 | # new | ||||||||||
| 18 | #------------------------------ | ||||||||||
| 19 | |||||||||||
| 20 | 55 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 21 | 55 | my($class) = shift; | |||||||||
| 22 | 55 | my($this) = { | |||||||||
| 23 | $Net::UPnP::AV::Content::_ID => '', | ||||||||||
| 24 | $Net::UPnP::AV::Content::_TITLE => '', | ||||||||||
| 25 | $Net::UPnP::AV::Content::_DATE => '', | ||||||||||
| 26 | }; | ||||||||||
| 27 | 55 | bless $this, $class; | |||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | #------------------------------ | ||||||||||
| 31 | # id | ||||||||||
| 32 | #------------------------------ | ||||||||||
| 33 | |||||||||||
| 34 | 55 | ▶ | sub setid() { | ||||||||
|
Subroutine
setid: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||
| 35 | 55 | my($this) = shift; | |||||||||
| 36 | 55 | ▶ | if (@_) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 37 | 55 | $this->{$Net::UPnP::AV::Content::_ID} = $_[0]; | |||||||||
| 38 | } | ||||||||||
| 39 | } | ||||||||||
| 40 | |||||||||||
| 41 | 53 | ▶ | sub getid() { | ||||||||
|
Subroutine
getid: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 42 | 53 | my($this) = shift; | |||||||||
| 43 | 53 | $this->{$Net::UPnP::AV::Content::_ID}; | |||||||||
| 44 | } | ||||||||||
| 45 | |||||||||||
| 46 | #------------------------------ | ||||||||||
| 47 | # title | ||||||||||
| 48 | #------------------------------ | ||||||||||
| 49 | |||||||||||
| 50 | 55 | ▶ | sub settitle() { | ||||||||
|
Subroutine
settitle: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||
| 51 | 55 | my($this) = shift; | |||||||||
| 52 | 55 | ▶ | if (@_) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 53 | 55 | $this->{$Net::UPnP::AV::Content::_TITLE} = $_[0]; | |||||||||
| 54 | } | ||||||||||
| 55 | } | ||||||||||
| 56 | |||||||||||
| 57 | 2 | ▶ | sub gettitle() { | ||||||||
|
Subroutine
gettitle: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 58 | 2 | my($this) = shift; | |||||||||
| 59 | 2 | $this->{$Net::UPnP::AV::Content::_TITLE}; | |||||||||
| 60 | } | ||||||||||
| 61 | |||||||||||
| 62 | #------------------------------ | ||||||||||
| 63 | # date | ||||||||||
| 64 | #------------------------------ | ||||||||||
| 65 | |||||||||||
| 66 | 0 | ▶ | sub setdate() { | ||||||||
|
Subroutine
setdate: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 67 | 0 | my($this) = shift; | |||||||||
| 68 | 0 | ▶ | if (@_) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 69 | 0 | $this->{$Net::UPnP::AV::Content::_DATE} = $_[0]; | |||||||||
| 70 | } | ||||||||||
| 71 | } | ||||||||||
| 72 | |||||||||||
| 73 | 0 | ▶ | sub getdate() { | ||||||||
|
Subroutine
getdate: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 74 | 0 | my($this) = shift; | |||||||||
| 75 | 0 | $this->{$Net::UPnP::AV::Content::_DATE}; | |||||||||
| 76 | } | ||||||||||
| 77 | |||||||||||
| 78 | #------------------------------ | ||||||||||
| 79 | # is* | ||||||||||
| 80 | #------------------------------ | ||||||||||
| 81 | |||||||||||
| 82 | sub iscontainer() { | ||||||||||
| 83 | 0; | ||||||||||
| 84 | } | ||||||||||
| 85 | |||||||||||
| 86 | sub isitem() { | ||||||||||
| 87 | 0; | ||||||||||
| 88 | } | ||||||||||
| 89 | |||||||||||
| 90 | 3 | 1; | |||||||||
| 91 | |||||||||||
| 92 | __END__ | ||||||||||