-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Everybody loves code cleanups! CLEANUPS CLEANUPS CLEANUPS CLEANUPS. And headers. Headers are so awesome. OMG. Replaced MySettings.cpp and SettingsDBWrapper with one class which does exactly the same but in more... logical way. Removed stuff from MessageWrapper which shouldn't be there, I think I could remove it as soon as I find a way to do exactly the same in JavaScript. Merged AccountsListModel.h and AccountsListModel.cpp cause who needs cpp file if you can do all this in header?
- Loading branch information
1 parent
6b63a67
commit b61abed
Showing
23 changed files
with
592 additions
and
982 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,19 +1,46 @@ | ||
/******************************************************************** | ||
src/AccountsListModel.h | ||
-- implements list model for accounts | ||
Copyright (c) 2012 Anatoliy Kozlov, | ||
Maciej Janiszewski | ||
This file is part of Lightbulb and was derived from MeegIM. | ||
Lightbulb is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*********************************************************************/ | ||
|
||
#ifndef ACCOUNTSLISTMODEL_H | ||
#define ACCOUNTSLISTMODEL_H | ||
|
||
#include "listmodel.h" | ||
#include "accountsitemmodel.h" | ||
#include "ListModel.h" | ||
#include "AccountsItemModel.h" | ||
|
||
class AccountsListModel : public ListModel | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit AccountsListModel( QObject *parent = 0 ); | ||
AccountsListModel( QObject *parent ) :ListModel( new AccountsItemModel, parent ) | ||
{ | ||
} | ||
|
||
Q_INVOKABLE void append( AccountsItemModel *item ); | ||
Q_INVOKABLE void remove( int index ); | ||
Q_INVOKABLE int count(); | ||
Q_INVOKABLE void clearList(); | ||
Q_INVOKABLE void append( AccountsItemModel *item ) { this->appendRow(item); } | ||
Q_INVOKABLE void remove( int index ) { this->removeRow( index ); } | ||
Q_INVOKABLE int count() { return this->rowCount(); } | ||
Q_INVOKABLE void clearList() { this->clear(); } | ||
}; | ||
|
||
#endif // ACCOUNTSLISTMODEL_H |
Oops, something went wrong.