Chatterino
Account.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "common/ProviderId.hpp"
4 
5 #include <QString>
6 
7 namespace chatterino {
8 
9 class Account
10 {
11 public:
12  Account(ProviderId providerId);
13  virtual ~Account() = default;
14 
15  virtual QString toString() const = 0;
16  const QString &getCategory() const;
17  ProviderId getProviderId() const;
18 
19  bool operator<(const Account &other) const;
20 
21 private:
22  ProviderId providerId_;
23  QString category_;
24 };
25 
26 } // namespace chatterino
virtual QString toString() const =0
Definition: Account.hpp:9
Definition: Application.cpp:48
const QString & getCategory() const
Definition: Account.cpp:22
ProviderId getProviderId() const
Definition: Account.cpp:27
ProviderId
Definition: ProviderId.hpp:5
bool operator<(const Account &other) const
Definition: Account.cpp:32
virtual ~Account()=default
Account(ProviderId providerId)
Definition: Account.cpp:7