diff -r 87476091b3f5 -r 1db7cc813a4e homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hscollectionnamedialog.h --- a/homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hscollectionnamedialog.h Fri Jul 23 13:47:57 2010 +0300 +++ b/homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hscollectionnamedialog.h Fri Aug 06 13:36:36 2010 +0300 @@ -35,9 +35,9 @@ virtual ~HsCollectionNameDialog(); - void open(QObject* receiver, const char* member ); - - QString newName(const QString &name, bool addLastName = false); + void open(QObject* receiver, const char* member); + + QString uniqueCollectionName() const; protected: void closeEvent( QCloseEvent * event ); @@ -47,6 +47,10 @@ void makeDisconnect(); + QString suggestedCollectionName(const QString &name); + + QString generateUniqueCollectionName(const QString &name) const; + private slots: void onTextChanged(const QString &text); @@ -58,13 +62,12 @@ /* * Collections names list from data model. */ - QStringList mCollectionsNames; + QStringList mOtherCollectionsNames; /* - * Last found collection name. + * Already suggested names. */ - QString mLastCollectionName; - + QStringList mSuggestedNames; }; #endif /* HS_INPUT_DIALOG_H */