GPL License address fixes

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1061479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 16 years ago
parent 10e4114459
commit d04616c11a

@ -1,22 +1,22 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* Copyright (C) 2006-2007 William Jon McCann <mccann@jhu.edu> Copyright (C) 2006-2007 William Jon McCann <mccann@jhu.edu>
* Copyright (C) 2007 Kevin Kofler <Kevin@tigcc.ticalc.org> Copyright (C) 2007 Kevin Kofler <Kevin@tigcc.ticalc.org>
*
* This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License You should have received a copy of the GNU Library General Public License
* along with this program; if not, write to the Free Software along with this library; see the file COPYING.LIB. If not, write to
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/ */
#include "dm.h" #include "dm.h"

@ -1,22 +1,22 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* Copyright (C) 2006 William Jon McCann <mccann@jhu.edu> Copyright (C) 2006 William Jon McCann <mccann@jhu.edu>
* Copyright (C) 2007 Kevin Kofler <Kevin@tigcc.ticalc.org> Copyright (C) 2007 Kevin Kofler <Kevin@tigcc.ticalc.org>
*
* This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License You should have received a copy of the GNU Library General Public License
* along with this program; if not, write to the Free Software along with this library; see the file COPYING.LIB. If not, write to
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/ */

@ -1,22 +1,22 @@
/*************************************************************************** /*
* Copyright (C) 2005 by Olivier Goffart * Copyright (C) 2005 by Olivier Goffart
* ogoffart@kde.org * ogoffart@kde.org
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU Library General Public License
* along with this program; if not, write to the * along with this library; see the file COPYING.LIB. If not, write to
* Free Software Foundation, Inc., * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Boston, MA 02110-1301, USA.
***************************************************************************/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
@ -104,7 +104,7 @@ Sound SoundRecorderArts::sound()
int nb=(unsigned char)(m_data[f]) -128; int nb=(unsigned char)(m_data[f]) -128;
#elif BITS==16 #elif BITS==16
int nb=(m_data[2*f] &0x000000FF ) | ( (m_data[2*f+1] &0x000000FF ) << 8 ) ; int nb=(m_data[2*f] &0x000000FF ) | ( (m_data[2*f+1] &0x000000FF ) << 8 ) ;
if(nb & (1<< 15)) if(nb & (1<< 15))
nb = nb-(1<<16); nb = nb-(1<<16);
#else #else
#error BITS is not 16 or 8 #error BITS is not 16 or 8

@ -1,22 +1,23 @@
/*************************************************************************** /*
* Copyright (C) 2005 by Olivier Goffart * Copyright (C) 2005 by Olivier Goffart
* ogoffart@kde.org * ogoffart@kde.org
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU Library General Public License
* along with this program; if not, write to the * along with this library; see the file COPYING.LIB. If not, write to
* Free Software Foundation, Inc., * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Boston, MA 02110-1301, USA.
***************************************************************************/ */
#ifndef RECORDER_ARTS_H #ifndef RECORDER_ARTS_H
#define RECORDER_ARTS_H #define RECORDER_ARTS_H

@ -1,20 +1,20 @@
/* /*
Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de> Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Library General Public License
along with this program; if not, write to the Free Software along with this library; see the file COPYING.LIB. If not, write to
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/ */
#include <qcheckbox.h> #include <qcheckbox.h>
@ -51,7 +51,7 @@ PropertiesPage::PropertiesPage(QWidget* parent, const QString &_id)
if (list.size()) { if (list.size()) {
kdDebug() << "list " << list << endl; kdDebug() << "list " << list << endl;
for (QStringList::ConstIterator it = list.begin(); it != list.end(); ++it) for (QStringList::ConstIterator it = list.begin(); it != list.end(); ++it)
{ {
QString key = (*it).left((*it).find('=')); QString key = (*it).left((*it).find('='));
@ -60,57 +60,57 @@ PropertiesPage::PropertiesPage(QWidget* parent, const QString &_id)
options[key] = value; options[key] = value;
} }
if (!options.contains("ro")) if (!options.contains("ro"))
option_ro->hide(); option_ro->hide();
else else
option_ro->setChecked(options["ro"] == "true"); option_ro->setChecked(options["ro"] == "true");
connect( option_ro, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) ); connect( option_ro, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
if (!options.contains("quiet")) if (!options.contains("quiet"))
option_quiet->hide(); option_quiet->hide();
else else
option_quiet->setChecked(options["quiet"] == "true"); option_quiet->setChecked(options["quiet"] == "true");
connect( option_quiet, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) ); connect( option_quiet, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
if (!options.contains("sync")) if (!options.contains("sync"))
option_sync->hide(); option_sync->hide();
else else
option_sync->setChecked(options["sync"] == "true"); option_sync->setChecked(options["sync"] == "true");
connect( option_sync, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) ); connect( option_sync, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
if (!options.contains("atime")) if (!options.contains("atime"))
option_atime->hide(); option_atime->hide();
else else
option_atime->setChecked(options["atime"] == "true"); option_atime->setChecked(options["atime"] == "true");
connect( option_atime, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) ); connect( option_atime, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
if (!options.contains("flush")) if (!options.contains("flush"))
option_flush->hide(); option_flush->hide();
else else
option_flush->setChecked(options["flush"] == "true"); option_flush->setChecked(options["flush"] == "true");
connect( option_flush, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) ); connect( option_flush, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
if (!options.contains("utf8")) if (!options.contains("utf8"))
option_utf8->hide(); option_utf8->hide();
else else
option_utf8->setChecked(options["utf8"] == "true"); option_utf8->setChecked(options["utf8"] == "true");
connect( option_utf8, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) ); connect( option_utf8, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
if (!options.contains("uid")) if (!options.contains("uid"))
option_uid->hide(); option_uid->hide();
else else
option_uid->setChecked(options["uid"] == "true"); option_uid->setChecked(options["uid"] == "true");
connect( option_uid, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) ); connect( option_uid, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
if (!options.contains("shortname")) if (!options.contains("shortname"))
{ {
option_shortname->hide(); option_shortname->hide();
text_shortname->hide(); text_shortname->hide();
} }
else else
{ {
for (int index = 0; short_names[index]; ++index) for (int index = 0; short_names[index]; ++index)
if (options["shortname"] == short_names[index]) if (options["shortname"] == short_names[index])
{ {
option_shortname->setCurrentItem(index); option_shortname->setCurrentItem(index);
break; break;
@ -118,15 +118,15 @@ PropertiesPage::PropertiesPage(QWidget* parent, const QString &_id)
connect( option_shortname, SIGNAL( activated(int) ), SIGNAL( changed() ) ); connect( option_shortname, SIGNAL( activated(int) ), SIGNAL( changed() ) );
} }
if (!options.contains("journaling")) if (!options.contains("journaling"))
{ {
text_journaling->hide(); text_journaling->hide();
option_journaling->hide(); option_journaling->hide();
} }
else else
{ {
for (int index = 0; journales[index]; ++index) for (int index = 0; journales[index]; ++index)
if (options["journaling"] == journales[index]) if (options["journaling"] == journales[index])
{ {
option_journaling->setCurrentItem(index); option_journaling->setCurrentItem(index);
break; break;
@ -148,25 +148,25 @@ PropertiesPage::PropertiesPage(QWidget* parent, const QString &_id)
groupbox_specific->hide(); groupbox_specific->hide();
} else { } else {
groupbox_generic->setEnabled(false); groupbox_generic->setEnabled(false);
groupbox_specific->setEnabled(false); groupbox_specific->setEnabled(false);
label_filesystem->hide(); label_filesystem->hide();
} }
} }
PropertiesPage::~PropertiesPage() PropertiesPage::~PropertiesPage()
{ {
} }
bool PropertiesPage::save() bool PropertiesPage::save()
{ {
QStringList result; QStringList result;
if (options.contains("ro")) if (options.contains("ro"))
result << QString("ro=%1").arg(option_ro->isChecked() ? "true" : "false"); result << QString("ro=%1").arg(option_ro->isChecked() ? "true" : "false");
if (options.contains("quiet")) if (options.contains("quiet"))
result << QString("quiet=%1").arg(option_quiet->isChecked() ? "true" : "false"); result << QString("quiet=%1").arg(option_quiet->isChecked() ? "true" : "false");
if (options.contains("sync")) if (options.contains("sync"))
@ -184,10 +184,10 @@ bool PropertiesPage::save()
if (options.contains("uid")) if (options.contains("uid"))
result << QString("uid=%1").arg(option_uid->isChecked() ? "true" : "false"); result << QString("uid=%1").arg(option_uid->isChecked() ? "true" : "false");
if (options.contains("shortname")) if (options.contains("shortname"))
result << QString("shortname=%1").arg(short_names[option_shortname->currentItem()]); result << QString("shortname=%1").arg(short_names[option_shortname->currentItem()]);
if (options.contains("journaling")) if (options.contains("journaling"))
result << QString("journaling=%1").arg(journales[option_journaling->currentItem()]); result << QString("journaling=%1").arg(journales[option_journaling->currentItem()]);
QString mp = option_mountpoint->text(); QString mp = option_mountpoint->text();
@ -203,15 +203,15 @@ bool PropertiesPage::save()
DCOPRef mediamanager("kded", "mediamanager"); DCOPRef mediamanager("kded", "mediamanager");
DCOPReply reply = mediamanager.call( "setMountoptions", id, result); DCOPReply reply = mediamanager.call( "setMountoptions", id, result);
if (reply.isValid()) if (reply.isValid())
return (bool)reply; return (bool)reply;
else { else {
KMessageBox::sorry(this, KMessageBox::sorry(this,
i18n("Saving the changes failed")); i18n("Saving the changes failed"));
return false; return false;
} }
} }
#include "propertiespage.moc" #include "propertiespage.moc"

@ -1,20 +1,20 @@
/* /*
Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de> Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Library General Public License
along with this program; if not, write to the Free Software along with this library; see the file COPYING.LIB. If not, write to
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/ */
#ifndef PROPERTIESPAGE_H #ifndef PROPERTIESPAGE_H
@ -33,11 +33,11 @@ class PropertiesPage : public PropertiesPageGUI
public: public:
PropertiesPage(QWidget* parent, const QString &_id); PropertiesPage(QWidget* parent, const QString &_id);
virtual ~PropertiesPage(); virtual ~PropertiesPage();
bool save(); bool save();
protected: protected:
QMap<QString,QString> options; QMap<QString,QString> options;
QString id; QString id;

@ -1,21 +1,22 @@
/* /*
Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de> Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Library General Public License
along with this program; if not, write to the Free Software along with this library; see the file COPYING.LIB. If not, write to
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/ */
#include <qstring.h> #include <qstring.h>
#include <qvbox.h> #include <qvbox.h>
#include <qlayout.h> #include <qlayout.h>
@ -42,12 +43,12 @@ typedef KGenericFactory<PropsDlgSharePlugin, KPropertiesDialog> PropsDlgSharePlu
K_EXPORT_COMPONENT_FACTORY( media_propsdlgplugin, K_EXPORT_COMPONENT_FACTORY( media_propsdlgplugin,
PropsDlgSharePluginFactory("media_propsdlgplugin") ) PropsDlgSharePluginFactory("media_propsdlgplugin") )
class PropsDlgSharePlugin::Private class PropsDlgSharePlugin::Private
{ {
public: public:
PropertiesPage* page; PropertiesPage* page;
}; };
PropsDlgSharePlugin::PropsDlgSharePlugin( KPropertiesDialog *dlg, PropsDlgSharePlugin::PropsDlgSharePlugin( KPropertiesDialog *dlg,
const char *, const QStringList & ) const char *, const QStringList & )
: KPropsDlgPlugin(dlg), d(0) : KPropsDlgPlugin(dlg), d(0)
@ -60,21 +61,21 @@ PropsDlgSharePlugin::PropsDlgSharePlugin( KPropertiesDialog *dlg,
DCOPRef mediamanager("kded", "mediamanager"); DCOPRef mediamanager("kded", "mediamanager");
kdDebug() << "properties " << item->url() << endl; kdDebug() << "properties " << item->url() << endl;
DCOPReply reply = mediamanager.call( "properties", item->url().url() ); DCOPReply reply = mediamanager.call( "properties", item->url().url() );
if ( !reply.isValid() ) if ( !reply.isValid() )
return; return;
QVBox* vbox = properties->addVBoxPage(i18n("&Mounting")); QVBox* vbox = properties->addVBoxPage(i18n("&Mounting"));
d = new Private(); d = new Private();
d->page = new PropertiesPage(vbox, Medium::create(reply).id()); d->page = new PropertiesPage(vbox, Medium::create(reply).id());
connect(d->page, SIGNAL(changed()), connect(d->page, SIGNAL(changed()),
SLOT(slotChanged())); SLOT(slotChanged()));
// QTimer::singleShot(100, this, SLOT(slotChanged())); // QTimer::singleShot(100, this, SLOT(slotChanged()));
} }
void PropsDlgSharePlugin::slotChanged() void PropsDlgSharePlugin::slotChanged()
{ {
@ -87,7 +88,7 @@ PropsDlgSharePlugin::~PropsDlgSharePlugin()
delete d; delete d;
} }
void PropsDlgSharePlugin::applyChanges() void PropsDlgSharePlugin::applyChanges()
{ {
kdDebug() << "applychanges\n"; kdDebug() << "applychanges\n";
if (!d->page->save()) { if (!d->page->save()) {

@ -1,20 +1,20 @@
/* /*
Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de> Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Library General Public License
along with this program; if not, write to the Free Software along with this library; see the file COPYING.LIB. If not, write to
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/ */
#ifndef KONQFILESHAREPLUGIN_H #ifndef KONQFILESHAREPLUGIN_H
@ -36,7 +36,7 @@ public slots:
private: private:
class Private; class Private;
Private *d; Private *d;
}; };
#endif #endif

Loading…
Cancel
Save