-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dguihal@gmail.com
committed
Nov 2, 2013
1 parent
c8c7218
commit d527af2
Showing
17 changed files
with
725 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include "qqmussel.h" | ||
|
||
#define SEP_CHAR '@' | ||
|
||
QQMussel::QQMussel(QString name, QString board, bool isAuth) : | ||
m_name(name), | ||
m_board(board), | ||
m_isAuth(isAuth) | ||
{ | ||
} | ||
|
||
QString QQMussel::fullName() const | ||
{ | ||
QString fn; | ||
fn.append(m_name).append(SEP_CHAR).append(m_board); | ||
return m_name; | ||
} | ||
|
||
bool QQMussel::equals(const QQMussel mussel) const | ||
{ | ||
return (m_name == mussel.m_name) && | ||
(m_board == mussel.m_board) && | ||
(m_isAuth == mussel.m_isAuth); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef QQMUSSEL_H | ||
#define QQMUSSEL_H | ||
|
||
#include <QString> | ||
|
||
class QQMussel | ||
{ | ||
public: | ||
explicit QQMussel(QString name, QString board, bool isAuth = true); | ||
|
||
QString name() const { return m_name; } | ||
QString board() const { return m_board; } | ||
bool isAuth() const { return m_isAuth; } | ||
|
||
QString fullName() const; | ||
bool equals(const QQMussel mussel) const; | ||
bool operator== (const QQMussel mussel) const { return this->equals(mussel); } | ||
|
||
private: | ||
QString m_name; | ||
QString m_board; | ||
bool m_isAuth; | ||
}; | ||
|
||
#endif // QQMUSSEL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.