Rechercher une page de manuel
Audio::MPD::Common::Stats.3pm
Langue: en
Version: 2009-01-06 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
Audio::MPD::Common::Stats - class representing MPD statsSYNOPSIS
print $stats->artists;
DESCRIPTION
The MPD server maintains some general information. Those information can be queried with the mpd modules. Some of those information are served to you as an "Audio::MPD::Common::Status" object.Note that an "Audio::MPD::Common::Stats" object does not update itself regularly, and thus should be used immediately.
METHODS
Constructor
- new( %kv )
- The "new()" method is the constructor for the "Audio::MPD::Common::Stats" class.
Note: one should never ever instantiate an "Audio::MPD::Common::Stats" object directly - use the mpd modules instead.
Accessors
Once created, one can access to the following members of the object:- $stats->artists()
- Number of artists in the music database.
- $stats->albums()
- Number of albums in the music database.
- $stats->songs()
- Number of songs in the music database.
- $stats->uptime()
- Daemon uptime (time since last startup) in seconds.
- $stats->playtime()
- Time length of music played.
- $stats->db_playtime()
- Sum of all song times in the music database.
- $stats->db_update()
- Last database update in UNIX time.
Please note that those accessors are read-only: changing a value will not change the current settings of MPD server. Use the mpd modules to alter the settings.
SEE ALSO
- Audio::MPD
- POE::Component::Client::MPD
AUTHOR
Jerome Quelin, "<jquelin at cpan.org>"COPYRIGHT & LICENSE
Copyright (c) 2007 Jerome Quelin, all rights reserved.This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre