diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-08-03 20:33:15 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-08-03 20:33:15 +0100 |
commit | fe354978ea13a5d3d8cbfc8f8ec2b3ab20170cf5 (patch) | |
tree | 84d372b1045490bfff4060233b184c842ac0acad /src/indicator-sound.h | |
parent | 9f7e55264deaaad68280ae33daad95fca604df8b (diff) | |
download | ayatana-indicator-sound-fe354978ea13a5d3d8cbfc8f8ec2b3ab20170cf5.tar.gz ayatana-indicator-sound-fe354978ea13a5d3d8cbfc8f8ec2b3ab20170cf5.tar.bz2 ayatana-indicator-sound-fe354978ea13a5d3d8cbfc8f8ec2b3ab20170cf5.zip |
almost there
Diffstat (limited to 'src/indicator-sound.h')
-rw-r--r-- | src/indicator-sound.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/indicator-sound.h b/src/indicator-sound.h index 386ad2a..cf1535b 100644 --- a/src/indicator-sound.h +++ b/src/indicator-sound.h @@ -24,7 +24,30 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -// Essentially these are all exported to faciltiate testing +#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); + void prepare_state_machine(); void determine_state_from_volume(gdouble volume_percent); gint get_state(); |