/usr/include/gstreamermm-0.10/gstreamermm/tuner.h is in libgstreamermm-0.10-dev 0.10.11-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 | // -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GSTREAMERMM_TUNER_H
#define _GSTREAMERMM_TUNER_H
#include <glibmm/ustring.h>
#include <sigc++/sigc++.h>
/* gstreamermm - a C++ wrapper for gstreamer
*
* Copyright 2008 The gstreamermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gst/interfaces/tuner.h>
#include <glibmm/interface.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GstTuner GstTuner;
typedef struct _GstTunerClass GstTunerClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gst
{ class Tuner_Class; } // namespace Gst
namespace Gst
{
class TunerChannel;
class TunerNorm;
/** An interface for elements providing tuner operations.
* @ingroup GstInterfaces
*/
class Tuner : public Glib::Interface
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef Tuner CppObjectType;
typedef Tuner_Class CppClassType;
typedef GstTuner BaseObjectType;
typedef GstTunerClass BaseClassType;
private:
friend class Tuner_Class;
static CppClassType tuner_class_;
// noncopyable
Tuner(const Tuner&);
Tuner& operator=(const Tuner&);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
protected:
/**
* You should derive from this class to use it.
*/
Tuner();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
/** Called by constructors of derived classes. Provide the result of
* the Class init() function to ensure that it is properly
* initialized.
*
* @param interface_class The Class object for the derived type.
*/
explicit Tuner(const Glib::Interface_Class& interface_class);
public:
// This is public so that C++ wrapper instances can be
// created for C instances of unwrapped types.
// For instance, if an unexpected C type implements the C interface.
explicit Tuner(GstTuner* castitem);
protected:
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~Tuner();
static void add_interface(GType gtype_implementer);
/** Get the GType for this class, for use with the underlying GObject type system.
*/
static GType get_type() G_GNUC_CONST;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GstTuner* gobj() { return reinterpret_cast<GstTuner*>(gobject_); }
///Provides access to the underlying C GObject.
const GstTuner* gobj() const { return reinterpret_cast<GstTuner*>(gobject_); }
private:
public:
/** Retrieve a List of Gst::TunerChannels available
* (e.g.\ 'composite', 's-video', ...) from the given tuner object.
* @return A list of channels available on this tuner. The list is
* owned by the GstTuner and must not be freed.
*/
Glib::ListHandle< Glib::RefPtr<Gst::TunerChannel> > list_channels();
/** Retrieve a List of Gst::TunerChannels available
* (e.g.\ 'composite', 's-video', ...) from the given tuner object.
* @return A list of channels available on this tuner. The list is
* owned by the GstTuner and must not be freed.
*/
Glib::ListHandle< Glib::RefPtr<const Gst::TunerChannel> > list_channels() const;
/** Retrieve the current channel from the tuner.
* @return The current channel of the tuner object.
*/
Glib::RefPtr<Gst::TunerChannel> get_channel();
/** Retrieve the current channel from the tuner.
* @return The current channel of the tuner object.
*/
Glib::RefPtr<const Gst::TunerChannel> get_channel() const;
/** Tunes the object to the given channel, which should be one of the
* channels returned by list_channels().
* @param channel The channel to tune to.
*/
void set_channel(const Glib::RefPtr<Gst::TunerChannel>& channel);
/** Retrieve a GList of available Gst::TunerNorm settings for the currently
* tuned channel on the given tuner object.
* @return A list of norms available on the current channel for this
* tuner object. The list is owned by the GstTuner and must not
* be freed.
*/
Glib::ListHandle< Glib::RefPtr<Gst::TunerNorm> > list_norms();
/** Retrieve a GList of available Gst::TunerNorm settings for the currently
* tuned channel on the given tuner object.
* @return A list of norms available on the current channel for this
* tuner object. The list is owned by the GstTuner and must not
* be freed.
*/
Glib::ListHandle< Glib::RefPtr<const Gst::TunerNorm> > list_norms() const;
/** Get the current video norm from the given tuner object for the
* currently selected channel.
* @return The current norm.
*/
Glib::RefPtr<Gst::TunerNorm> get_norm();
/** Get the current video norm from the given tuner object for the
* currently selected channel.
* @return The current norm.
*/
Glib::RefPtr<const Gst::TunerNorm> get_norm() const;
/** Changes the video norm on this tuner to the given norm, which should be
* one of the norms returned by list_norms().
* @param norm The norm to use for the current channel.
*/
void set_norm(const Glib::RefPtr<Gst::TunerNorm>& norm);
/** Retrieve the current frequency from the given channel. As for
* set_frequency(), the Gst::TunerChannel must support frequency
* operations, as indicated by the GST_TUNER_CHANNEL_FREQUENCY flag.
* @param channel The Gst::TunerChannel to retrieve the frequency from.
* @return The current frequency, or 0 on error.
*/
gulong get_frequency(const Glib::RefPtr<const Gst::TunerChannel>& channel) const;
/** Sets a tuning frequency on the given tuner/channel. Note that this
* requires the given channel to be a "tuning" channel, which can be
* checked using GST_TUNER_CHANNEL_HAS_FLAG (), with the proper flag
* being GST_TUNER_CHANNEL_FREQUENCY.
*
* The frequency is in Hz, with minimum steps indicated by the
* frequency_multiplicator provided in the Gst::TunerChannel. The
* valid range is provided in the min_frequency and max_frequency properties
* of the Gst::TunerChannel.
* @param channel The Gst::TunerChannel to set the frequency on.
* @param frequency The frequency to tune in to.
*/
void set_frequency(const Glib::RefPtr<Gst::TunerChannel>& channel, gulong frequency);
/** Get the strength of the signal on this channel. Note that this
* requires the current channel to be a "tuning" channel, i.e. a
* channel on which frequency can be set. This can be checked using
* GST_TUNER_CHANNEL_HAS_FLAG (), and the appropriate flag to check
* for is GST_TUNER_CHANNEL_FREQUENCY.
*
* The valid range of the signal strength is indicated in the
* min_signal and max_signal properties of the Gst::TunerChannel.
* @param channel The Gst::TunerChannel to get the signal strength from.
* @return Signal strength, or 0 on error.
*/
int get_signal_strength(const Glib::RefPtr<Gst::TunerChannel>& channel);
/** Look up a Gst::TunerNorm by name.
* @param norm A string containing the name of a Gst::TunerNorm.
* @return A Gst::TunerNorm, or <tt>0</tt> if no norm with the provided name
* is available.
*/
Glib::RefPtr<Gst::TunerNorm> find_norm(const Glib::ustring& norm);
/** Look up a Gst::TunerNorm by name.
* @param norm A string containing the name of a Gst::TunerNorm.
* @return A Gst::TunerNorm, or <tt>0</tt> if no norm with the provided name
* is available.
*/
Glib::RefPtr<const Gst::TunerNorm> find_norm(const Glib::ustring& norm) const;
/** Look up a Gst::TunerChannel by name.
* @param channel A string containing the name of a Gst::TunerChannel.
* @return A Gst::TunerChannel, or <tt>0</tt> if no channel with the provided name
* is available.
*/
Glib::RefPtr<Gst::TunerChannel> find_channel(const Glib::ustring& channel);
/** Look up a Gst::TunerChannel by name.
* @param channel A string containing the name of a Gst::TunerChannel.
* @return A Gst::TunerChannel, or <tt>0</tt> if no channel with the provided name
* is available.
*/
Glib::RefPtr<const Gst::TunerChannel> find_channel(const Glib::ustring& channel) const;
/** Called by elements implementing the Gst::Tuner interface when the
* current channel changes. Fires the Gst::Tuner::signal_channel_changed() signal.
* @param channel A Gst::TunerChannel instance.
*/
void channel_changed(const Glib::RefPtr<Gst::TunerChannel>& channel);
/** Called by elements implementing the Gst::Tuner interface when the
* current norm changes. Fires the Gst::Tuner::signal_norm_changed() signal.
* @param norm A Gst::TunerNorm instance.
*/
void norm_changed(const Glib::RefPtr<Gst::TunerNorm>& norm);
/** Called by elements implementing the Gst::Tuner interface when the
* configured frequency changes. Fires the Gst::Tuner::signal_frequency_changed()
* signal on the tuner, and the Gst::TunerChannel::signal_frequency_changed() signal
* on the channel.
* @param channel The current Gst::TunerChannel.
* @param frequency The new frequency setting.
*/
void frequency_changed(const Glib::RefPtr<Gst::TunerChannel>& channel, gulong frequency);
/** Called by elements implementing the Gst::Tuner interface when the
* incoming signal strength changes. Fires the Gst::Tuner::signal_signal_changed()
* signal on the tuner and the Gst::TunerChannel::signal_signal_changed() signal on
* the channel.
* @param channel The current Gst::TunerChannel.
* @param signal The new signal strength.
*/
void signal_changed(const Glib::RefPtr<Gst::TunerChannel>& channel, int signal);
/**
* @par Slot Prototype:
* <tt>void on_my_%channel_changed(const Glib::RefPtr<Gst::TunerChannel>& channel)</tt>
*
* Reports that the current Gst::TunerChannel has changed.
* @param channel The new configured channel.
*/
Glib::SignalProxy1< void,const Glib::RefPtr<Gst::TunerChannel>& > signal_channel_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%frequency_changed(const Glib::RefPtr<Gst::TunerChannel>& channel, gulong frequency)</tt>
*
* Reports that the current frequency has changed.
* @param frequency The new frequency (an unsigned long).
*/
Glib::SignalProxy2< void,const Glib::RefPtr<Gst::TunerChannel>&,gulong > signal_frequency_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%norm_changed(const Glib::RefPtr<Gst::TunerNorm>& norm)</tt>
*
* Reports that the current Gst::TunerNorm has changed.
* @param norm The new configured norm.
*/
Glib::SignalProxy1< void,const Glib::RefPtr<Gst::TunerNorm>& > signal_norm_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%signal_changed(const Glib::RefPtr<Gst::TunerChannel>& channel, int signal)</tt>
*
* Reports that the signal strength has changed.
*
* See Also: Gst::Tuner::signal_strength()
* @param channel The current Gst::TunerChannel.
* @param signal The new signal strength (an integer).
*/
Glib::SignalProxy2< void,const Glib::RefPtr<Gst::TunerChannel>&,int > signal_signal_changed();
virtual Glib::ListHandle< Glib::RefPtr<Gst::TunerChannel> > list_channels_vfunc() const;
virtual void set_channel_vfunc(const Glib::RefPtr<Gst::TunerChannel>& channel);
virtual Glib::RefPtr<Gst::TunerChannel> get_channel_vfunc() const;
virtual Glib::ListHandle< Glib::RefPtr<Gst::TunerNorm> > list_norms_vfunc() const;
virtual void set_norm_vfunc(const Glib::RefPtr<Gst::TunerNorm>& norm);
virtual Glib::RefPtr<Gst::TunerNorm> get_norm_vfunc() const;
virtual void set_frequency_vfunc(const Glib::RefPtr<Gst::TunerChannel>& channel, gulong frequency);
virtual gulong get_frequency_vfunc(const Glib::RefPtr<Gst::TunerChannel>& channel) const;
virtual int signal_strength_vfunc(const Glib::RefPtr<Gst::TunerChannel>& channel) const;
protected:
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
protected:
//GTK+ Virtual Functions (override these to change behaviour):
//Default Signal Handlers::
/// This is a default handler for the signal signal_channel_changed().
virtual void on_channel_changed(const Glib::RefPtr<Gst::TunerChannel>& channel);
/// This is a default handler for the signal signal_frequency_changed().
virtual void on_frequency_changed(const Glib::RefPtr<Gst::TunerChannel>& channel, gulong frequency);
/// This is a default handler for the signal signal_norm_changed().
virtual void on_norm_changed(const Glib::RefPtr<Gst::TunerNorm>& norm);
/// This is a default handler for the signal signal_signal_changed().
virtual void on_signal_changed(const Glib::RefPtr<Gst::TunerChannel>& channel, int signal);
};
} // namespace Gst
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gst::Tuner
*/
Glib::RefPtr<Gst::Tuner> wrap(GstTuner* object, bool take_copy = false);
} // namespace Glib
#endif /* _GSTREAMERMM_TUNER_H */
|