@@ -42,8 +42,11 @@ int MockNotificationModel::rowCount(const QModelIndex &parent) const {
4242 return m_queue.size();
4343}
4444
45+int MockNotificationModel::getCount() const {
46+ return m_queue.size();
47+}
48+
4549QVariant MockNotificationModel::data(const QModelIndex &index, int role) const {
46− qDebug() << "::data()";
4750 if (!index.isValid())
4851 return QVariant();
4952
@@ -89,7 +92,6 @@ void MockNotificationModel::append(MockNotification* n) {
8992 beginInsertRows(insertionPoint, location, location);
9093 m_queue.insert(location, n);
9194 endInsertRows();
92− qDebug() << "queue-size:" << m_queue.size();
9395}
9496
9597MockNotification* MockNotificationModel::getNotification(unsigned int id) const {
@@ -116,7 +118,7 @@ bool MockNotificationModel::hasNotification(unsigned int id) const {
116118 return !(getNotification(id) != nullptr);
117119}
118120
119−void MockNotificationModel::removeNotification(const unsigned int id) {
121+void MockNotificationModel::remove(const unsigned int id) {
120122 for(int i = 0; i < m_queue.size(); i++) {
121123 if(m_queue[i]->getID() == id) {
122124 deleteFromVisible(i);
@@ -140,7 +142,6 @@ void MockNotificationModel::deleteFromVisible(int loc) {
140142}
141143
142144MockNotification* MockNotificationModel::getRaw(const unsigned int notificationId) const {
143− qDebug() << "::getRaw()";
144145 for(int i = 0; i < m_queue.size(); i++) {
145146 if(m_queue[i]->getID() == notificationId) {
146147 MockNotification* n = m_queue[i];