From 0bf7fe3140257614b743de5266536e33699655b1 Mon Sep 17 00:00:00 2001 From: Jaroslav Barton Date: Mon, 4 May 2009 09:21:24 +0200 Subject: [PATCH] added GPL header into source files --- pot/kcmkfingermanager_cs.po | 3 +-- src/EnrollStatus.cpp | 21 +++++++++++++++++++- src/EnrollStatus.h | 42 +++++++++++++++++++++++++++++---------- src/FMDbusConn.cpp | 20 +++++++++++++++++++ src/FMDbusConn.h | 20 +++++++++++++++++++ src/FMEnroll.cpp | 23 +++++++++++++++++++++ src/FMEnroll.h | 20 +++++++++++++++++++ src/FingerManagerDevicesModel.cpp | 20 +++++++++++++++++++ src/FingerManagerDevicesModel.h | 38 ++++++++++++++++++++++++++--------- src/FingerManagerWindow.cpp | 20 +++++++++++++++++++ src/FingerManagerWindow.h | 20 +++++++++++++++++++ src/FingerNames.h | 20 +++++++++++++++++++ src/SensorAnimLabel.cpp | 20 +++++++++++++++++++ src/SensorAnimLabel.h | 20 +++++++++++++++++++ 14 files changed, 284 insertions(+), 23 deletions(-) diff --git a/pot/kcmkfingermanager_cs.po b/pot/kcmkfingermanager_cs.po index 41f7986..813617f 100644 --- a/pot/kcmkfingermanager_cs.po +++ b/pot/kcmkfingermanager_cs.po @@ -374,8 +374,7 @@ msgstr "" #: FingerManagerWindow.cpp:41 msgid "Deletion of single fingerprint is not supported in fprintd D-Bus daemon" msgstr "" -"Nelze odstranit otisk pouze jednoho prstu.\nTato operace není podporována v " -"D-Bus démonu Fprintd." +"Nelze odstranit otisk pouze jednoho prstu.

Tato operace není podporována D-Bus službou fprintd.
" #: FingerManagerWindow.cpp:76 #, c-format diff --git a/src/EnrollStatus.cpp b/src/EnrollStatus.cpp index 3c4a319..a3a1f8f 100644 --- a/src/EnrollStatus.cpp +++ b/src/EnrollStatus.cpp @@ -1,4 +1,23 @@ -#include +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #include #include diff --git a/src/EnrollStatus.h b/src/EnrollStatus.h index fe21e88..bb698b9 100644 --- a/src/EnrollStatus.h +++ b/src/EnrollStatus.h @@ -1,3 +1,23 @@ +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #ifndef ENROLL_STATUS_LABEL_ #define ENROLL_STATUS_LABEL_ @@ -10,21 +30,21 @@ class EnrollStatus : public QWidget { Q_OBJECT private: - QHBoxLayout *hb; - QLabel *fingerprint; - QLabel *status; - QPixmap *okPix; - QPixmap *errPix; - bool state; - void initComponents(); - void loadImages(QString fp, QString enOk, QString enEr); - void setConstraints(); + QHBoxLayout *hb; + QLabel *fingerprint; + QLabel *status; + QPixmap *okPix; + QPixmap *errPix; + bool state; + void initComponents(); + void loadImages(QString fp, QString enOk, QString enEr); + void setConstraints(); public: EnrollStatus(QWidget *parent=0); EnrollStatus(QString fp, QString enOk=0, QString enEr=0, QWidget *parent=0); ~EnrollStatus(); - void setChecked(bool checked); - void clearStatus(); + void setChecked(bool checked); + void clearStatus(); }; #endif \ No newline at end of file diff --git a/src/FMDbusConn.cpp b/src/FMDbusConn.cpp index 637fe2c..1c1f89c 100644 --- a/src/FMDbusConn.cpp +++ b/src/FMDbusConn.cpp @@ -1,3 +1,23 @@ +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #include #include #include diff --git a/src/FMDbusConn.h b/src/FMDbusConn.h index b1ea1ea..9177abb 100644 --- a/src/FMDbusConn.h +++ b/src/FMDbusConn.h @@ -1,3 +1,23 @@ +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #ifndef FMDBUSCONN_H_ #define FMDBUSCONN_H_ diff --git a/src/FMEnroll.cpp b/src/FMEnroll.cpp index 62f85c5..05a60af 100644 --- a/src/FMEnroll.cpp +++ b/src/FMEnroll.cpp @@ -1,3 +1,23 @@ +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #include #include #include @@ -205,6 +225,9 @@ void FMEnroll::timeout() { */ FMEnroll::~FMEnroll() { qDebug() << "FMEnroll destructor"; + + QObject::disconnect(this, SLOT(enrollStatus(QString,bool))); + if (statusLabel) delete statusLabel; if (actualStatus) delete actualStatus; if (statusLayout) delete statusLayout; diff --git a/src/FMEnroll.h b/src/FMEnroll.h index 1662efd..4fcc5e6 100644 --- a/src/FMEnroll.h +++ b/src/FMEnroll.h @@ -1,3 +1,23 @@ +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #ifndef FMENROLL_H_ #define FMENROLL_H_ diff --git a/src/FingerManagerDevicesModel.cpp b/src/FingerManagerDevicesModel.cpp index 199ca40..559dbfa 100644 --- a/src/FingerManagerDevicesModel.cpp +++ b/src/FingerManagerDevicesModel.cpp @@ -1,3 +1,23 @@ +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #include "FingerManagerDevicesModel.h" /** diff --git a/src/FingerManagerDevicesModel.h b/src/FingerManagerDevicesModel.h index 62a9021..3447804 100644 --- a/src/FingerManagerDevicesModel.h +++ b/src/FingerManagerDevicesModel.h @@ -1,3 +1,23 @@ +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #ifndef FINGERMANAGER_DEVICES_MODEL_H_ #define FINGERMANAGER_DEVICES_MODEL_H_ @@ -18,22 +38,22 @@ class FingerManagerDevicesModel : public QAbstractListModel { private: QList devices; - int default_; + int default_; public: FingerManagerDevicesModel(QObject *parent = 0); ~FingerManagerDevicesModel(); - int rowCount(const QModelIndex&) const; - QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; + int rowCount(const QModelIndex&) const; + QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; - void addDevice(QString device, QString name); - void setDefault(QString device); + void addDevice(QString device, QString name); + void setDefault(QString device); - QString getDeviceName(int row); - QString getDevicePath(int row); - DeviceModel getDeviceModel(int row); + QString getDeviceName(int row); + QString getDevicePath(int row); + DeviceModel getDeviceModel(int row); - int getDefault(); + int getDefault(); }; #endif \ No newline at end of file diff --git a/src/FingerManagerWindow.cpp b/src/FingerManagerWindow.cpp index 71597c7..4240e3e 100644 --- a/src/FingerManagerWindow.cpp +++ b/src/FingerManagerWindow.cpp @@ -1,3 +1,23 @@ +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #include #include #include diff --git a/src/FingerManagerWindow.h b/src/FingerManagerWindow.h index 1820459..1fab009 100644 --- a/src/FingerManagerWindow.h +++ b/src/FingerManagerWindow.h @@ -1,3 +1,23 @@ +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #ifndef FINGERMANAGERWINDOW_H_ #define FINGERMANAGERWINDOW_H_ diff --git a/src/FingerNames.h b/src/FingerNames.h index 086766b..526a200 100644 --- a/src/FingerNames.h +++ b/src/FingerNames.h @@ -1,3 +1,23 @@ +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #ifndef FINGERNAMES_H_ #define FINGERNAMES_H_ diff --git a/src/SensorAnimLabel.cpp b/src/SensorAnimLabel.cpp index 27de872..84e81c7 100644 --- a/src/SensorAnimLabel.cpp +++ b/src/SensorAnimLabel.cpp @@ -1,3 +1,23 @@ +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #include #include "SensorAnimLabel.h" diff --git a/src/SensorAnimLabel.h b/src/SensorAnimLabel.h index ebde384..213708b 100644 --- a/src/SensorAnimLabel.h +++ b/src/SensorAnimLabel.h @@ -1,3 +1,23 @@ +/* + +Copyright (C) 2009 Jaroslav Barton + +This program 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 2 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, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + #ifndef ENROLL_ANIM_LABEL_ #define ENROLL_ANIM_LABEL_ -- 2.11.4.GIT