本文整理汇总了C++中RB_SOURCE_GET_CLASS函数的典型用法代码示例。如果您正苦于以下问题:C++ RB_SOURCE_GET_CLASS函数的具体用法?C++ RB_SOURCE_GET_CLASS怎么用?C++ RB_SOURCE_GET_CLASS使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RB_SOURCE_GET_CLASS函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: rb_source_reset_filters
/**
* rb_source_reset_filters:
* @source: a #RBSource
*
* Clears all filters (browser selections, etc.) in this source.
*/
void
rb_source_reset_filters (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
klass->impl_reset_filters (source);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:13,代码来源:rb-source.c
示例2: rb_source_paste
/**
* rb_source_paste:
* @source: a #RBSource
* @entries: a list of #RhythmDBEntry objects to paste in
*
* Adds a list of entries previously cut or copied from another
* source.
*/
void
rb_source_paste (RBSource *source, GList *entries)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
klass->impl_paste (source, entries);
}
开发者ID:ivankelly,项目名称:Rhythmbox-Spotify-Plugin,代码行数:15,代码来源:rb-source.c
示例3: rb_source_can_paste
/**
* rb_source_can_paste:
* @source: a #RBSource
*
* Determines whether the source supports paste operations.
*
* Return value: TRUE if the pasting is supported
*/
gboolean
rb_source_can_paste (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
return klass->impl_can_paste (source);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:15,代码来源:rb-source.c
示例4: rb_source_paste
/**
* rb_source_paste:
* @source: a #RBSource
* @entries: (element-type RB.RhythmDBEntry): a list of #RhythmDBEntry objects to paste in
*
* Adds a list of entries previously cut or copied from another
* source. If the entries are not of the type used by the source,
* the entries will be copied and possibly converted into an acceptable format.
* This can be used for transfers to and from devices and network shares.
*
* If the transfer is performed using an #RBTrackTransferBatch, the batch object
* is returned so the caller can monitor the transfer progress. The caller does not
* own a reference on the batch object.
*
* Return value: (transfer none): the #RBTrackTransferBatch used to perform the transfer (if any)
*/
RBTrackTransferBatch *
rb_source_paste (RBSource *source, GList *entries)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
return klass->impl_paste (source, entries);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:23,代码来源:rb-source.c
示例5: rb_source_get_entry_view
/**
* rb_source_get_entry_view:
* @source: a #RBSource
*
* Returns the entry view widget for the source.
*
* Return value: (transfer none): the #RBEntryView instance for the source
*/
RBEntryView *
rb_source_get_entry_view (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
return klass->impl_get_entry_view (source);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:15,代码来源:rb-source.c
示例6: rb_source_get_browser_key
/**
* rb_source_get_browser_key:
* @source: a #RBSource
*
* Return value: the GConf key that determines browser visibility
* for this source (allocated)
*/
char *
rb_source_get_browser_key (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
return klass->impl_get_browser_key (source);
}
开发者ID:ivankelly,项目名称:Rhythmbox-Spotify-Plugin,代码行数:14,代码来源:rb-source.c
示例7: rb_source_add_to_queue
/**
* rb_source_add_to_queue:
* @source: a #RBSource
* @queue: the #RBSource for the play queue
*
* Adds the currently selected entries to the end of the
* play queue.
*/
void
rb_source_add_to_queue (RBSource *source,
RBSource *queue)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
klass->impl_add_to_queue (source, queue);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:15,代码来源:rb-source.c
示例8: rb_source_delete
/**
* rb_source_delete:
* @source: a #RBSource
*
* Deletes the currently selected entries from the source.
*/
void
rb_source_delete (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
klass->impl_delete (source);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:13,代码来源:rb-source.c
示例9: rb_source_get_search_actions
/**
* rb_source_get_search_actions:
* @source: a #RBSource
*
* Returns a list of UI action names. Buttons for these
* actions will be added to the search bar. The source
* must identify the selected search action when constructing
* a database query for searching
*
* Return value: list of search actions
*/
GList *
rb_source_get_search_actions (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
return klass->impl_get_search_actions (source);
}
开发者ID:ivankelly,项目名称:Rhythmbox-Spotify-Plugin,代码行数:18,代码来源:rb-source.c
示例10: rb_source_move_to_trash
/**
* rb_source_move_to_trash:
* @source: a #RBSource
*
* Trashes the files backing the currently selected set of entries.
* In general, this should use #rhythmdb_entry_move_to_trash to
* perform the actual trash operation.
*/
void
rb_source_move_to_trash (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
klass->impl_move_to_trash (source);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:15,代码来源:rb-source.c
示例11: rb_source_can_show_properties
/**
* rb_source_can_show_properties:
* @source: a #RBSource
*
* Determines whether the source can display a properties
* window for the currently selected entry (or set of entries)
*
* Return value: TRUE if showing properties is supported
*/
gboolean
rb_source_can_show_properties (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
return (klass->impl_song_properties != NULL);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:16,代码来源:rb-source.c
示例12: rb_source_copy
/**
* rb_source_copy:
* @source: a #RBSource
*
* Copies the selected entries to the clipboard.
*
* Return value: (element-type RB.RhythmDBEntry) (transfer full): a list containing
* the currently selected entries from the source.
*/
GList *
rb_source_copy (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
return klass->impl_copy (source);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:16,代码来源:rb-source.c
示例13: rb_source_handle_eos
/**
* rb_source_handle_eos:
* @source: a #RBSource
*
* Determines how EOS events should be handled when playing entries
* from the source.
*
* Return value: EOS event handling type
*/
RBSourceEOFType
rb_source_handle_eos (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
return klass->impl_handle_eos (source);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:16,代码来源:rb-source.c
示例14: rb_source_get_property_views
/**
* rb_source_get_property_views:
* @source: a #RBSource
*
* Returns a list containing the #RBPropertyView instances for the
* source, if any.
*
* Return value: (element-type RB.PropertyView) (transfer container): list of property views
*/
GList *
rb_source_get_property_views (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
return klass->impl_get_property_views (source);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:16,代码来源:rb-source.c
示例15: rb_source_show_popup
/**
* rb_source_show_popup:
* @source: a #RBSource
*
* Called when the user performs an action (such as right-clicking)
* that should result in a popup menu being displayed for the source.
*
* Return value: TRUE if the source managed to display a popup
*/
gboolean
rb_source_show_popup (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
return klass->impl_show_popup (source);
}
开发者ID:ivankelly,项目名称:Rhythmbox-Spotify-Plugin,代码行数:16,代码来源:rb-source.c
示例16: rb_source_try_playlist
/**
* rb_source_try_playlist:
* @source: a #RBSource
*
* Determines whether playback URIs for entries in the source should
* be parsed as playlists rather than just played.
*
* Return value: TRUE to attempt playlist parsing
*/
gboolean
rb_source_try_playlist (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
return klass->impl_try_playlist (source);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:16,代码来源:rb-source.c
示例17: rb_source_uri_is_source
/**
* rb_source_uri_is_source:
* @source: a #RBSource
* @uri: a URI for the source to consider
*
* Checks if the URI matches the source itself. A source
* should return TRUE here if the URI points to the device that
* the source represents, for example.
*
* Return value: TRUE if the URI identifies the source itself.
*/
gboolean
rb_source_uri_is_source (RBSource *source, const char *uri)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
if (klass->impl_uri_is_source)
return klass->impl_uri_is_source (source, uri);
return FALSE;
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:19,代码来源:rb-source.c
示例18: rb_source_add_uri
/**
* rb_source_add_uri:
* @source: a #RBSource
* @uri: a URI to add
* @title: theoretically, the title of the entity the URI points to
* @genre: theoretically, the genre of the entity the URI points to
*
* Adds an entry corresponding to the URI to the source. The
* @title and @genre parameters are not really used.
*
* Return value: TRUE if the URI was successfully added to the source
*/
gboolean
rb_source_add_uri (RBSource *source, const char *uri, const char *title, const char *genre)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
if (klass->impl_add_uri)
return klass->impl_add_uri (source, uri, title, genre);
return FALSE;
}
开发者ID:ivankelly,项目名称:Rhythmbox-Spotify-Plugin,代码行数:20,代码来源:rb-source.c
示例19: rb_source_song_properties
/**
* rb_source_song_properties:
* @source: a #RBSource
*
* Displays a properties window for the currently selected entries.
*/
void
rb_source_song_properties (RBSource *source)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
g_assert (klass->impl_song_properties);
klass->impl_song_properties (source);
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:14,代码来源:rb-source.c
示例20: rb_source_want_uri
/**
* rb_source_want_uri:
* @source: a #RBSource
* @uri: a URI for the source to consider
*
* Returns an indication of how much the source wants to handle
* the specified URI. 100 is the highest usual value, and should
* only be used when the URI can only be associated with this source.
* 0 should be used when the URI does not match the source at all.
*
* Return value: value from 0 to 100 indicating how much the
* source wants this URI.
*/
guint
rb_source_want_uri (RBSource *source, const char *uri)
{
RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);
if (klass->impl_want_uri)
return klass->impl_want_uri (source, uri);
return 0;
}
开发者ID:bilboed,项目名称:rhythmbox,代码行数:21,代码来源:rb-source.c
注:本文中的RB_SOURCE_GET_CLASS函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论