~ubuntu-branches/ubuntu/utopic/rhythmbox/utopic-proposed

« back to all changes in this revision

Viewing changes to widgets/rb-query-creator.h

Tags: upstream-0.9.2
ImportĀ upstreamĀ versionĀ 0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#define RB_IS_QUERY_CREATOR_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_QUERY_CREATOR))
35
35
#define RB_QUERY_CREATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_QUERY_CREATOR, RBQueryCreatorClass))
36
36
 
37
 
typedef struct RBQueryCreatorPrivate RBQueryCreatorPrivate;
38
 
 
39
37
typedef struct
40
38
{
41
39
        GtkDialog parent;
42
 
 
43
 
        RBQueryCreatorPrivate *priv;
44
40
} RBQueryCreator;
45
41
 
46
42
typedef struct
52
48
{
53
49
        RB_QUERY_CREATOR_LIMIT_COUNT,
54
50
        RB_QUERY_CREATOR_LIMIT_MB,
 
51
        RB_QUERY_CREATOR_LIMIT_SECONDS,
55
52
} RBQueryCreatorLimitType;      
56
53
 
57
54
GType           rb_query_creator_get_type       (void);
59
56
GtkWidget *     rb_query_creator_new            (RhythmDB *db);
60
57
 
61
58
GtkWidget *     rb_query_creator_new_from_query (RhythmDB *db, GPtrArray *query,
62
 
                                                 int limit_count, int limit_size);
63
 
 
64
 
 
65
 
GPtrArray *     rb_query_creator_get_query      (RBQueryCreator *dlg);
66
 
 
67
 
void            rb_query_creator_get_limit      (RBQueryCreator *dlg,
 
59
                                                 int limit_count, int limit_size, int limit_time,
 
60
                                                 const char *sort_column, gint sort_direction);
 
61
 
 
62
 
 
63
GPtrArray *     rb_query_creator_get_query      (RBQueryCreator *creator);
 
64
 
 
65
void            rb_query_creator_get_limit      (RBQueryCreator *creator,
68
66
                                                 RBQueryCreatorLimitType *type,
69
67
                                                 guint *limit);
70
68
 
 
69
void            rb_query_creator_get_sort_order (RBQueryCreator *creator, const char **sort_key, gint *sort_direction);
 
70
 
71
71
G_END_DECLS
72
72
 
73
73
#endif /* __RB_QUERY_CREATOR_H */