DhKeywordModel

DhKeywordModel

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── DhKeywordModel

Implemented Interfaces

DhKeywordModel implements GtkTreeModel.

Description

Functions

dh_keyword_model_new ()

DhKeywordModel *
dh_keyword_model_new (void);

Create a new DhKeywordModel object.

Returns

a new DhKeywordModel object


dh_keyword_model_set_words ()

void
dh_keyword_model_set_words (DhKeywordModel *model,
                            DhBookManager *book_manager);

Set the DhBookManager object on which words are analyzed.

Parameters

model

a DhKeywordModel object

 

book_manager

a DhBookManager to analyze

 

dh_keyword_model_filter ()

DhLink *
dh_keyword_model_filter (DhKeywordModel *model,
                         const gchar *search_string,
                         const gchar *book_id,
                         const gchar *language);

Find the book matching the given criteria.

Parameters

model

a DhKeywordModel object

 

search_string

a search query

 

book_id

the id of a specific book or NULL for all books.

[nullable]

language

the name of a language or NULL for all languages.

[nullable]

Returns

the corresponding DhLink or NULL if no link corresponding to the criteria is found.

[nullable][transfer none]

Types and Values

struct DhKeywordModel

struct DhKeywordModel;

struct DhKeywordModelClass

struct DhKeywordModelClass {
        GObjectClass parent_class;
};