diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2010-08-18 17:51:03 +0200 |
---|---|---|
committer | Bazaar Package Importer <james.westby@ubuntu.com> | 2010-08-18 17:51:03 +0200 |
commit | 0e0a8f4e926bd8179964826cf8ae2c3cecfbd26d (patch) | |
tree | e13374346bed13be3a4fc3e815e02b05d30717d9 /src/indicator-sound.h | |
parent | 4122614e725c4e41278142cfce1d1fc8fb4cfc22 (diff) | |
parent | 4c742105d8252a84df1aa6e5af419afd6abb52fa (diff) | |
download | ayatana-indicator-sound-0e0a8f4e926bd8179964826cf8ae2c3cecfbd26d.tar.gz ayatana-indicator-sound-0e0a8f4e926bd8179964826cf8ae2c3cecfbd26d.tar.bz2 ayatana-indicator-sound-0e0a8f4e926bd8179964826cf8ae2c3cecfbd26d.zip |
New upstream release using mpris2 now (lp: #617367)
Diffstat (limited to 'src/indicator-sound.h')
-rw-r--r-- | src/indicator-sound.h | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/src/indicator-sound.h b/src/indicator-sound.h index 386ad2a..9f829bb 100644 --- a/src/indicator-sound.h +++ b/src/indicator-sound.h @@ -23,10 +23,37 @@ PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <libindicator/indicator.h> +#include <libindicator/indicator-object.h> +#include <libindicator/indicator-service-manager.h> +#include <libindicator/indicator-image-helper.h> + +#define INDICATOR_SOUND_TYPE (indicator_sound_get_type ()) +#define INDICATOR_SOUND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), INDICATOR_SOUND_TYPE, IndicatorSound)) +#define INDICATOR_SOUND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), INDICATOR_SOUND_TYPE, IndicatorSoundClass)) +#define IS_INDICATOR_SOUND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), INDICATOR_SOUND_TYPE)) +#define IS_INDICATOR_SOUND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), INDICATOR_SOUND_TYPE)) +#define INDICATOR_SOUND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), INDICATOR_SOUND_TYPE, IndicatorSoundClass)) + +typedef struct _IndicatorSound IndicatorSound; +typedef struct _IndicatorSoundClass IndicatorSoundClass; + +//GObject class struct +struct _IndicatorSoundClass { + IndicatorObjectClass parent_class; +}; + +//GObject instance struct +struct _IndicatorSound { + IndicatorObject parent; + IndicatorServiceManager *service; +}; + +// GObject Boiler plate +GType indicator_sound_get_type (void); -// Essentially these are all exported to faciltiate testing void prepare_state_machine(); -void determine_state_from_volume(gdouble volume_percent); +extern void determine_state_from_volume(gdouble volume_percent); gint get_state(); gchar* get_state_image_name(gint state); void prepare_for_tests(IndicatorObject * io); |