[SCM] ktp-accounts-kcm packaging branch, master, updated. debian/15.12.1-1-1157-gc4589c5
Maximiliano Curia
maxy at moszumanska.debian.org
Fri May 27 23:57:08 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-accounts-kcm.git;a=commitdiff;h=7374dd3
The following commit has been merged in the master branch:
commit 7374dd33f9418b0a2e4354520d5f9ac54c369b68
Author: George Goldberg <grundleborg at googlemail.com>
Date: Sat Feb 14 17:27:01 2009 +0000
Add a stub class AccountItem.
This wraps a Telepathy::Client::Account object to handle its signals etc.
It will be used as the type in the AccountsListModel.
svn path=/trunk/playground/network/telepathy-accounts-kcm/; revision=926117
---
src/CMakeLists.txt | 1 +
src/{accounts-list-model.cpp => account-item.cpp} | 28 ++++++++---------------
src/{accounts-list-model.h => account-item.h} | 27 ++++++++++++++--------
3 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 21d3761..e1f3b3f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -7,6 +7,7 @@ include_directories (${CMAKE_CURRENT_BINARY_DIR}
set (telepathy_accounts_kcm_SRCS
kcm-telepathy-accounts.cpp
accounts-list-model.cpp
+ account-item.cpp
)
kde4_add_ui_files (telepathy_accounts_kcm_SRCS
diff --git a/src/accounts-list-model.cpp b/src/account-item.cpp
similarity index 66%
copy from src/accounts-list-model.cpp
copy to src/account-item.cpp
index 26ce8ca..1e572ef 100644
--- a/src/accounts-list-model.cpp
+++ b/src/account-item.cpp
@@ -18,31 +18,21 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "accounts-list-model.h"
-
-AccountsListModel::AccountsListModel(QObject *parent)
- : QAbstractListModel(parent)
-{
- // TODO: Implement me!
-}
+#include "account-item.h"
-AccountsListModel::~AccountsListModel()
-{
- // TODO: Implement me!
-}
+#include "accounts-list-model.h"
-int AccountsListModel::rowCount(const QModelIndex &index) const
+AccountItem::AccountItem(const Telepathy::Client::Account *account, AccountsListModel *parent)
+ : QObject(parent),
+ m_account(account)
{
- // TODO: Implement me!
- return 0;
+ // TODO: Implement me...
}
-QVariant AccountsListModel::data(const QModelIndex &index, int role) const
+AccountItem::~AccountItem()
{
- // TODO: Implement me!
- return QVariant();
+ // TODO: Implement me...
}
-
-#include "accounts-list-model.moc"
+#include "account-item.moc"
diff --git a/src/accounts-list-model.h b/src/account-item.h
similarity index 65%
copy from src/accounts-list-model.h
copy to src/account-item.h
index fdd15b7..13dd9be 100644
--- a/src/accounts-list-model.h
+++ b/src/account-item.h
@@ -18,21 +18,30 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef TELEPATHY_ACCOUNTS_KCM_ACCOUNTS_LIST_MODEL_H
-#define TELEPATHY_ACCOUNTS_KCM_ACCOUNTS_LIST_MODEL_H
+#ifndef TELEPATHY_ACCOUNTS_KCM_ACCOUNT_ITEM_H
+#define TELEPATHY_ACCOUNTS_KCM_ACCOUNT_ITEM_H
-#include <QAbstractListModel>
+#include <QtCore/QObject>
-class AccountsListModel : public QAbstractListModel
+class AccountsListModel;
+
+namespace Telepathy {
+ namespace Client {
+ class Account;
+ }
+}
+
+class AccountItem : public QObject
{
Q_OBJECT
- Q_DISABLE_COPY(AccountsListModel);
+ Q_DISABLE_COPY(AccountItem);
public:
- explicit AccountsListModel(QObject *parent = 0);
- virtual ~AccountsListModel();
- virtual int rowCount(const QModelIndex &index) const;
- virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
+ explicit AccountItem(const Telepathy::Client::Account *account, AccountsListModel *parent = 0);
+ virtual ~AccountItem();
+
+private:
+ const Telepathy::Client::Account *m_account;
};
--
ktp-accounts-kcm packaging
More information about the pkg-kde-commits
mailing list