From 638bcc947afe2b941d934fc3f87513f0c8565f7f Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Tue, 11 Sep 2012 20:24:27 -0300 Subject: Append the default licence header into source files. --- src/QMenuModel/plugin.cpp | 19 +++++++++++++++++++ src/QMenuModel/plugin.h | 19 +++++++++++++++++++ src/common/qdbusactiongroup.cpp | 19 +++++++++++++++++++ src/common/qdbusactiongroup.h | 19 +++++++++++++++++++ src/common/qdbusmenumodel.cpp | 19 +++++++++++++++++++ src/common/qdbusmenumodel.h | 19 +++++++++++++++++++ src/common/qdbusobject.cpp | 21 +++++++++++++++++++-- src/common/qdbusobject.h | 19 +++++++++++++++++++ src/common/qmenumodel.cpp | 22 +++++++++++++++++++--- src/common/qmenumodel.h | 19 +++++++++++++++++++ 10 files changed, 190 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/QMenuModel/plugin.cpp b/src/QMenuModel/plugin.cpp index 4b5b18e..9fd7922 100644 --- a/src/QMenuModel/plugin.cpp +++ b/src/QMenuModel/plugin.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 . + * + * Authors: + * Renato Araujo Oliveira Filho + */ + #include "plugin.h" #include "qmenumodel.h" #include "qdbusmenumodel.h" diff --git a/src/QMenuModel/plugin.h b/src/QMenuModel/plugin.h index 9346d32..e9d6850 100644 --- a/src/QMenuModel/plugin.h +++ b/src/QMenuModel/plugin.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 . + * + * Authors: + * Renato Araujo Oliveira Filho + */ + #ifndef QMENUMODELQMLPLUGIN_H #define QMENUMODELQMLPLUGIN_H 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 . + * + * Authors: + * Renato Araujo Oliveira Filho + */ + #include "qdbusactiongroup.h" #include 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 . + * + * Authors: + * Renato Araujo Oliveira Filho + */ + #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 . + * + * Authors: + * Renato Araujo Oliveira Filho + */ + #include "qdbusmenumodel.h" #include 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 . + * + * Authors: + * Renato Araujo Oliveira Filho + */ + #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 . + * + * Authors: + * Renato Araujo Oliveira Filho + */ + #include "qdbusobject.h" #include - - 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 . + * + * Authors: + * Renato Araujo Oliveira Filho + */ + #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 . + * + * Authors: + * Renato Araujo Oliveira Filho + */ + #include "qmenumodel.h" #include @@ -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(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 . + * + * Authors: + * Renato Araujo Oliveira Filho + */ + #ifndef QMENUMODEL_H #define QMENUMODEL_H -- cgit v1.2.3