equal
deleted
inserted
replaced
25 |
25 |
26 #ifndef HB_INPUT_EXTRA_DICTIONARY_COLLECTION_H |
26 #ifndef HB_INPUT_EXTRA_DICTIONARY_COLLECTION_H |
27 #define HB_INPUT_EXTRA_DICTIONARY_COLLECTION_H |
27 #define HB_INPUT_EXTRA_DICTIONARY_COLLECTION_H |
28 |
28 |
29 #include <QList> |
29 #include <QList> |
|
30 #include <hbglobal.h> |
|
31 #include <Qt> |
30 |
32 |
31 class HbExtraDictionaryCollectionPrivate; |
33 class HbExtraDictionaryCollectionPrivate; |
32 class HbExtraUserDictionary; |
34 class HbExtraUserDictionary; |
|
35 class QStringList; |
33 |
36 |
34 const int HbMaxDictionariesInCollection = 16; |
37 const int HbMaxDictionariesInCollection = 16; |
35 |
38 |
36 class HB_CORE_EXPORT HbExtraDictionaryCollection |
39 class HB_CORE_EXPORT HbExtraDictionaryCollection |
37 { |
40 { |
55 |
58 |
56 int numberOfWords() const; |
59 int numberOfWords() const; |
57 int totalNumberOfWords() const; |
60 int totalNumberOfWords() const; |
58 |
61 |
59 QString wordAt(int index) const; |
62 QString wordAt(int index) const; |
60 QStringList findMatches(const QString& searchString, Qt::CaseSensitivity caseSensitivity = Qt::CaseSensitive); |
63 QStringList findMatches(const QString &searchString, Qt::CaseSensitivity caseSensitivity = Qt::CaseSensitive); |
61 |
64 |
62 bool hasWord(const QString& word) const; |
65 bool hasWord(const QString &word) const; |
63 void incrementUseCount(const QString& word); |
66 void incrementUseCount(const QString &word); |
64 |
67 |
65 protected: |
68 protected: |
66 HbExtraDictionaryCollectionPrivate* const d_ptr; |
69 HbExtraDictionaryCollectionPrivate *const d_ptr; |
67 |
70 |
68 private: |
71 private: |
69 Q_DECLARE_PRIVATE_D(d_ptr, HbExtraDictionaryCollection) |
72 Q_DECLARE_PRIVATE_D(d_ptr, HbExtraDictionaryCollection) |
70 Q_DISABLE_COPY(HbExtraDictionaryCollection) |
73 Q_DISABLE_COPY(HbExtraDictionaryCollection) |
71 }; |
74 }; |