diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/qdbusactiongroup.cpp | 19 | ||||
-rw-r--r-- | src/common/qdbusactiongroup.h | 19 | ||||
-rw-r--r-- | src/common/qdbusmenumodel.cpp | 19 | ||||
-rw-r--r-- | src/common/qdbusmenumodel.h | 19 | ||||
-rw-r--r-- | src/common/qdbusobject.cpp | 21 | ||||
-rw-r--r-- | src/common/qdbusobject.h | 19 | ||||
-rw-r--r-- | src/common/qmenumodel.cpp | 22 | ||||
-rw-r--r-- | src/common/qmenumodel.h | 19 |
8 files changed, 152 insertions, 5 deletions
diff --git a/src/common/qdbusactiongroup.cpp b/src/common/qdbusactiongroup.cpp index 8475c29..51bc4ac 100644 --- a/src/common/qdbusactiongroup.cpp +++ b/src/common/qdbusactiongroup.cpp @@ -1,3 +1,22 @@ +/* + * Copyright 2012 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; version 3. + * + * 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Authors: + * Renato Araujo Oliveira Filho <renato@canonical.com> + */ + #include "qdbusactiongroup.h" #include <QDebug> diff --git a/src/common/qdbusactiongroup.h b/src/common/qdbusactiongroup.h index fe743b6..4ae0074 100644 --- a/src/common/qdbusactiongroup.h +++ b/src/common/qdbusactiongroup.h @@ -1,3 +1,22 @@ +/* + * Copyright 2012 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; version 3. + * + * 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Authors: + * Renato Araujo Oliveira Filho <renato@canonical.com> + */ + #ifndef QDBUSACTIONGROUP_H #define QDBUSACTIONGROUP_H diff --git a/src/common/qdbusmenumodel.cpp b/src/common/qdbusmenumodel.cpp index 6e35c85..cae1288 100644 --- a/src/common/qdbusmenumodel.cpp +++ b/src/common/qdbusmenumodel.cpp @@ -1,3 +1,22 @@ +/* + * Copyright 2012 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; version 3. + * + * 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Authors: + * Renato Araujo Oliveira Filho <renato@canonical.com> + */ + #include "qdbusmenumodel.h" #include <QDebug> diff --git a/src/common/qdbusmenumodel.h b/src/common/qdbusmenumodel.h index 4fc439d..14ac4a2 100644 --- a/src/common/qdbusmenumodel.h +++ b/src/common/qdbusmenumodel.h @@ -1,3 +1,22 @@ +/* + * Copyright 2012 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; version 3. + * + * 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Authors: + * Renato Araujo Oliveira Filho <renato@canonical.com> + */ + #ifndef QDBUSMENUMODEL_H #define QDBUSMENUMODEL_H diff --git a/src/common/qdbusobject.cpp b/src/common/qdbusobject.cpp index 6dec6d9..174a9d8 100644 --- a/src/common/qdbusobject.cpp +++ b/src/common/qdbusobject.cpp @@ -1,9 +1,26 @@ +/* + * Copyright 2012 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; version 3. + * + * 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Authors: + * Renato Araujo Oliveira Filho <renato@canonical.com> + */ + #include "qdbusobject.h" #include <QDebug> - - QDBusObject::QDBusObject() :m_watchId(0), m_busType(None), diff --git a/src/common/qdbusobject.h b/src/common/qdbusobject.h index a2dc91c..c50d540 100644 --- a/src/common/qdbusobject.h +++ b/src/common/qdbusobject.h @@ -1,3 +1,22 @@ +/* + * Copyright 2012 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; version 3. + * + * 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Authors: + * Renato Araujo Oliveira Filho <renato@canonical.com> + */ + #ifndef QDBUSOBJECT_H #define QDBUSOBJECT_H diff --git a/src/common/qmenumodel.cpp b/src/common/qmenumodel.cpp index 6e7483c..230365c 100644 --- a/src/common/qmenumodel.cpp +++ b/src/common/qmenumodel.cpp @@ -1,3 +1,22 @@ +/* + * Copyright 2012 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; version 3. + * + * 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Authors: + * Renato Araujo Oliveira Filho <renato@canonical.com> + */ + #include "qmenumodel.h" #include <QDebug> @@ -43,7 +62,6 @@ void QMenuModel::setMenuModel(GMenuModel *other) if (m_menuModel) { // this will trigger the menu load (void) g_menu_model_get_n_items(m_menuModel); - //qDebug() << "Menu size:" << g_menu_model_get_n_items(m_menuModel); m_signalChangedId = g_signal_connect(m_menuModel, "items-changed", G_CALLBACK(QMenuModel::onItemsChanged), @@ -152,7 +170,6 @@ QVariant QMenuModel::getExtraProperties(const QModelIndex &index) const const gchar *attrName = NULL; GVariant *value = NULL; while (g_menu_attribute_iter_get_next (iter, &attrName, &value)) { - qDebug() << "Set property:" << attrName; if (strncmp("x-", attrName, 2) == 0) { extra->setProperty(attrName, parseGVariant(value)); } @@ -169,7 +186,6 @@ void QMenuModel::onItemsChanged(GMenuModel *, gpointer data) { QMenuModel *self = reinterpret_cast<QMenuModel*>(data); - //qDebug() << "Item Changed" << position << removed << added; if (removed > 0) { self->beginRemoveRows(QModelIndex(), position, position + removed - 1); diff --git a/src/common/qmenumodel.h b/src/common/qmenumodel.h index f1e0b61..e594ea7 100644 --- a/src/common/qmenumodel.h +++ b/src/common/qmenumodel.h @@ -1,3 +1,22 @@ +/* + * Copyright 2012 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; version 3. + * + * 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Authors: + * Renato Araujo Oliveira Filho <renato@canonical.com> + */ + #ifndef QMENUMODEL_H #define QMENUMODEL_H |