Changeset View
Changeset View
Standalone View
Standalone View
src/context/applets/wikipedia/plugin/WikipediaEngine.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 40 | public: | |||
---|---|---|---|---|---|
55 | void setUrl( const QUrl &url ); | 55 | void setUrl( const QUrl &url ); | ||
56 | QString message() const { return m_message; } | 56 | QString message() const { return m_message; } | ||
57 | bool busy() const { return m_busy; } | 57 | bool busy() const { return m_busy; } | ||
58 | SelectionType selection() const; | 58 | SelectionType selection() const; | ||
59 | bool setSelection( SelectionType type ); // returns true if selection is changed | 59 | bool setSelection( SelectionType type ); // returns true if selection is changed | ||
60 | QString title() const { return m_title; } | 60 | QString title() const { return m_title; } | ||
61 | QString language() const { return preferredLangs.first(); } | 61 | QString language() const { return preferredLangs.first(); } | ||
62 | void setLanguage( const QString &language ); | 62 | void setLanguage( const QString &language ); | ||
63 | Q_INVOKABLE void reloadWikipedia(); | ||||
63 | 64 | | |||
64 | Q_SIGNALS: | 65 | Q_SIGNALS: | ||
65 | void pageChanged(); | 66 | void pageChanged(); | ||
66 | void messageChanged(); | 67 | void messageChanged(); | ||
67 | void busyChanged(); | 68 | void busyChanged(); | ||
68 | void selectionChanged(); | 69 | void selectionChanged(); | ||
69 | void languageChanged(); | 70 | void languageChanged(); | ||
70 | void titleChanged(); | 71 | void titleChanged(); | ||
71 | void urlChanged(); | 72 | void urlChanged(); | ||
72 | 73 | | |||
73 | private: | 74 | private: | ||
74 | void fetchWikiUrl( const QString &title, const QString &urlPrefix ); | 75 | void fetchWikiUrl( const QString &title, const QString &urlPrefix ); | ||
75 | void fetchLangLinks( const QString &title, const QString &hostLang, const QString &llcontinue = QString() ); | 76 | void fetchLangLinks( const QString &title, const QString &hostLang, const QString &llcontinue = QString() ); | ||
76 | void fetchListing( const QString &title, const QString &hostLang ); | 77 | void fetchListing( const QString &title, const QString &hostLang ); | ||
77 | void reloadWikipedia(); | | |||
78 | bool setSelection( const QString &type ); | 78 | bool setSelection( const QString &type ); | ||
79 | void updateEngine(); | 79 | void updateEngine(); | ||
80 | void wikiParse( QString &page ); | 80 | void wikiParse( QString &page ); | ||
81 | QString createLanguageComboBox( const QMap<QString, QString> &languageMap ); | 81 | QString createLanguageComboBox( const QMap<QString, QString> &languageMap ); | ||
82 | void setPage( const QString &page ); | 82 | void setPage( const QString &page ); | ||
83 | void setMessage( const QString &message ); | 83 | void setMessage( const QString &message ); | ||
84 | void setBusy( bool busy ); | 84 | void setBusy( bool busy ); | ||
85 | void setTitle( const QString &title ); | 85 | void setTitle( const QString &title ); | ||
Show All 40 Lines |