- inline AliasManager(QObject *parent = 0) : SyncableObject(parent) { setAllowClientUpdates(true); }
- AliasManager &operator=(const AliasManager &other);
-
- struct Alias {
- QString name;
- QString expansion;
- Alias(const QString &name_, const QString &expansion_) : name(name_), expansion(expansion_) {}
- };
- typedef QList<Alias> AliasList ;
-
- int indexOf(const QString &name) const;
- inline bool contains(const QString &name) const { return indexOf(name) != -1; }
- inline bool isEmpty() const { return _aliases.isEmpty(); }
- inline int count() const { return _aliases.count(); }
- inline void removeAt(int index) { _aliases.removeAt(index); }
- inline Alias &operator[](int i) { return _aliases[i]; }
- inline const Alias &operator[](int i) const { return _aliases[i]; }
- inline const AliasList &aliases() const { return _aliases; }
-
- static AliasList defaults();
+ inline AliasManager(QObject *parent = 0) : SyncableObject(parent) { setAllowClientUpdates(true); }
+ AliasManager &operator=(const AliasManager &other);
+
+ struct Alias {
+ QString name;
+ QString expansion;
+ Alias(const QString &name_, const QString &expansion_) : name(name_), expansion(expansion_) {}
+ };
+ typedef QList<Alias> AliasList;
+
+ int indexOf(const QString &name) const;
+ inline bool contains(const QString &name) const { return indexOf(name) != -1; }
+ inline bool isEmpty() const { return _aliases.isEmpty(); }
+ inline int count() const { return _aliases.count(); }
+ inline void removeAt(int index) { _aliases.removeAt(index); }
+ inline Alias &operator[](int i) { return _aliases[i]; }
+ inline const Alias &operator[](int i) const { return _aliases.at(i); }
+ inline const AliasList &aliases() const { return _aliases; }
+
+ static AliasList defaults();
+
+ typedef QList<QPair<BufferInfo, QString> > CommandList;
+
+ CommandList processInput(const BufferInfo &info, const QString &message);