homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hscollectionnamedialog.h
changeset 77 4b195f3bea29
parent 46 23b5d6a29cce
--- a/homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hscollectionnamedialog.h	Tue Jul 06 14:06:53 2010 +0300
+++ b/homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hscollectionnamedialog.h	Wed Aug 18 09:40:07 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 */