refs #571, allow to select distributor by key or alias

* removed redundant getId function
* functions for completer
This commit is contained in:
Klaus Basan
2016-01-12 01:16:44 +01:00
parent 0dda9024d1
commit 9f646f215c
6 changed files with 53 additions and 28 deletions

View File

@@ -41,10 +41,13 @@ namespace BlackMisc
CDistributorList(const CSequence<CDistributor> &other);
//! Find by id or alias
CDistributor findByIdOrAlias(const QString &name);
CDistributor findByKeyOrAlias(const QString &keyOrAlias);
//! Best match by given pattern
CDistributor smartDistributorSelector(const CDistributor &distributorPattern);
//! All DB keys and aliases
QStringList getDbKeysAndAliases() const;
};
} //namespace
} // namespace