<commit_before>/*
   This file is part of Kontact.
   Copyright (C) 2003 <NAME> <<EMAIL>>
	 Copyright (C) 2004 <NAME> <<EMAIL>>

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.

   This library 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
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public License
   along with this library; see the file COPYING.LIB.  If not, write to
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.
*/

#include <kaboutdata.h>
#include <kgenericfactory.h>
#include <kparts/componentfactory.h>

#include "core.h"
#include "summarywidget.h"

#include "kpilot_plugin.h"
#include "options.h"

typedef KGenericFactory< KPilotPlugin, Kontact::Core > KPilotPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libkontact_kpilotplugin,
                            KPilotPluginFactory( "kontact_kpilotplugin" ) )

KPilotPlugin::KPilotPlugin( Kontact::Core *core, const char *name, const QStringList& )
  : Kontact::Plugin( core, core, name ), mAboutData( 0 )
{
  setInstance( KPilotPluginFactory::instance() );
	// TODO: Make sure kpilotDaemon is running!


}

Kontact::Summary *KPilotPlugin::createSummaryWidget( QWidget *parentWidget )
{
  return new SummaryWidget( parentWidget );
}

const KAboutData *KPilotPlugin::aboutData()
{
  if ( !mAboutData ) {
	mAboutData = new KAboutData("kpilotplugin", I18N_NOOP("KPilot Information"),
		KPILOT_VERSION,
		I18N_NOOP("KPilot - HotSync software for KDE\n\n"),
		KAboutData::License_GPL, "(c) 2004 <NAME>");
	mAboutData->addAuthor("<NAME>",
		I18N_NOOP("Plugin Developer"), "<EMAIL>", "http://reinhold.kainhofer.com/Linux/");
	mAboutData->addAuthor("<NAME>",
		I18N_NOOP("Project Leader"),
		0, "http://www.kpilot.org/");<commit_msg>Make sure the translation catalogue is loaded, by making sure we pass our correct name to the Kontact::Plugin base class.  (proko2 issue 1087)<commit_after>/*
   This file is part of Kontact.
   Copyright (C) 2003 <NAME> <<EMAIL>>
	 Copyright (C) 2004 <NAME> <<EMAIL>>

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.

   This library 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
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public License
   along with this library; see the file COPYING.LIB.  If not, write to
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.
*/

#include <kaboutdata.h>
#include <kgenericfactory.h>
#include <kparts/componentfactory.h>

#include "core.h"
#include "summarywidget.h"

#include "kpilot_plugin.h"
#include "options.h"

typedef KGenericFactory< KPilotPlugin, Kontact::Core > KPilotPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libkontact_kpilotplugin,
                            KPilotPluginFactory( "kontact_kpilotplugin" ) )

KPilotPlugin::KPilotPlugin( Kontact::Core *core, const char *name, const QStringList& )
  : Kontact::Plugin( core, core, "kpilot" ), mAboutData( 0 )
{
  setInstance( KPilotPluginFactory::instance() );
	// TODO: Make sure kpilotDaemon is running!


}

Kontact::Summary *KPilotPlugin::createSummaryWidget( QWidget *parentWidget )
{
  return new SummaryWidget( parentWidget );
}

const KAboutData *KPilotPlugin::aboutData()
{
  if ( !mAboutData ) {
	mAboutData = new KAboutData("kpilotplugin", I18N_NOOP("KPilot Information"),
		KPILOT_VERSION,
		I18N_NOOP("KPilot - HotSync software for KDE\n\n"),
		KAboutData::License_GPL, "(c) 2004 <NAME>");
	mAboutData->addAuthor("<NAME>",
		I18N_NOOP("Plugin Developer"), "<EMAIL>", "http://reinhold.kainhofer.com/Linux/");
	mAboutData->addAuthor("<NAME>",
		I18N_NOOP("Project Leader"),
		0, "http://www.kpilot.org/");
{'fraction_non_alphanumeric': 0.10542915070961928, 'fraction_numerical': 0.01779680108132462, 'mean_word_length': 4.5018587360594795, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1200945', 'n_tokens_mistral': 1505, 'n_tokens_neox': 1354, 'n_words': 461}