modernize: Reformat ALL the source... again!
[quassel.git] / src / client / coreaccountmodel.h
index 88bc341..853aa9e 100644 (file)
@@ -32,18 +32,19 @@ class CLIENT_EXPORT CoreAccountModel : public QAbstractListModel
     Q_OBJECT
 
 public:
-    enum {
+    enum
+    {
         AccountIdRole = Qt::UserRole,
         UuidRole
     };
 
-    CoreAccountModel(QObject *parent = nullptr);
-    CoreAccountModel(const CoreAccountModel *other, QObject *parent = nullptr);
+    CoreAccountModel(QObjectparent = nullptr);
+    CoreAccountModel(const CoreAccountModel* other, QObject* parent = nullptr);
 
-    inline int rowCount(const QModelIndex &parent = QModelIndex()) const override;
-    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
+    inline int rowCount(const QModelIndexparent = QModelIndex()) const override;
+    QVariant data(const QModelIndexindex, int role = Qt::DisplayRole) const override;
 
-    CoreAccount account(const QModelIndex &) const;
+    CoreAccount account(const QModelIndex&) const;
     CoreAccount account(AccountId) const;
     QList<CoreAccount> accounts() const;
     QList<AccountId> accountIds() const;
@@ -51,14 +52,14 @@ public:
 
     inline AccountId internalAccount() const;
 
-    AccountId createOrUpdateAccount(const CoreAccount &newAccountData);
+    AccountId createOrUpdateAccount(const CoreAccountnewAccountData);
     CoreAccount takeAccount(AccountId);
     void removeAccount(AccountId);
 
-    void update(const CoreAccountModel *other);
+    void update(const CoreAccountModelother);
 
-    bool operator==(const CoreAccountModel &other) const;
-    bool operator!=(const CoreAccountModel &other) const;
+    bool operator==(const CoreAccountModelother) const;
+    bool operator!=(const CoreAccountModelother) const;
 
 public slots:
     void save();
@@ -66,7 +67,7 @@ public slots:
     void clear();
 
 protected:
-    void insertAccount(const CoreAccount &);
+    void insertAccount(const CoreAccount&);
     int findAccountIdx(AccountId) const;
 
 private:
@@ -77,14 +78,12 @@ private:
     AccountId _internalAccount;
 };
 
-
 // Inlines
-int CoreAccountModel::rowCount(const QModelIndex &) const
+int CoreAccountModel::rowCount(const QModelIndex&) const
 {
     return _accounts.count();
 }
 
-
 AccountId CoreAccountModel::internalAccount() const
 {
     return _internalAccount;