summaryrefslogtreecommitdiffstats
path: root/kfile-plugins
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 00:52:05 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 00:52:05 -0600
commitd796716f1dc9dd0b198863d974a03bf356f636e6 (patch)
tree1bab87345ab25163397b8033b7e1910360bd94fb /kfile-plugins
parent6f156aae95c8ea00b34ffb59e237df2f00cf8256 (diff)
downloadk3b-d796716f1dc9dd0b198863d974a03bf356f636e6.tar.gz
k3b-d796716f1dc9dd0b198863d974a03bf356f636e6.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'kfile-plugins')
-rw-r--r--kfile-plugins/Makefile.am1
-rw-r--r--kfile-plugins/k3bproject/Makefile.am27
-rw-r--r--kfile-plugins/k3bproject/kfile_k3b.desktop53
-rw-r--r--kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.cpp135
-rw-r--r--kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.h38
5 files changed, 0 insertions, 254 deletions
diff --git a/kfile-plugins/Makefile.am b/kfile-plugins/Makefile.am
deleted file mode 100644
index c1ba442..0000000
--- a/kfile-plugins/Makefile.am
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS = k3bproject \ No newline at end of file
diff --git a/kfile-plugins/k3bproject/Makefile.am b/kfile-plugins/k3bproject/Makefile.am
deleted file mode 100644
index d3f53d4..0000000
--- a/kfile-plugins/k3bproject/Makefile.am
+++ /dev/null
@@ -1,27 +0,0 @@
-AM_CPPFLAGS = -I$(srcdir)/../../libk3b/core \
- -I$(srcdir)/../../libk3b/core \
- -I$(srcdir)/../../libk3b/plugin \
- -I$(srcdir)/../../libk3b/tools \
- -I$(srcdir)/../../libk3b/projects \
- -I$(srcdir)/../../libk3b/projects/datacd \
- -I$(srcdir)/../../libk3bdevice \
- -I$(srcdir)/../../src/projects \
- $(all_includes)
-
-# these are the headers for your project
-noinst_HEADERS = kfile_k3bprojectfileplugin.h
-
-kde_module_LTLIBRARIES = kfile_k3b.la
-
-kfile_k3b_la_SOURCES = kfile_k3bprojectfileplugin.cpp
-kfile_k3b_la_LDFLAGS = $(all_libraries) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_KIO) -module $(KDE_PLUGIN)
-kfile_k3b_la_LIBADD = $(LIB_KIO) ../../libk3b/libk3b.la ../../src/projects/kostore/libkostore.la
-
-# let automoc handle all of the meta source files (moc)
-METASOURCES = AUTO
-
-services_DATA = kfile_k3b.desktop
-servicesdir = $(kde_servicesdir)
-
-messages:
- $(XGETTEXT) *.cpp -o $(podir)/kfile_k3b.pot
diff --git a/kfile-plugins/k3bproject/kfile_k3b.desktop b/kfile-plugins/k3bproject/kfile_k3b.desktop
deleted file mode 100644
index 651124f..0000000
--- a/kfile-plugins/k3bproject/kfile_k3b.desktop
+++ /dev/null
@@ -1,53 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Type=Service
-Name=K3b Project Info
-Name[af]=K3b Projek Informasie
-Name[ar]= معلومات عن مشروع K3B
-Name[bg]=Информация за K3b проект
-Name[bn]=কে-থ্রি-বি প্রকল্প তথ্য
-Name[br]=Titouroù raktres K3b
-Name[ca]=Informació sobre el projecte de K3b
-Name[cs]=Info o K3b projektu
-Name[da]=K3b Projektinformation
-Name[de]=K3b Projektinformationen
-Name[el]=Πληροφορίες έργου K3b
-Name[eo]=K3b projekta informo
-Name[es]=Información de proyecto K3b
-Name[et]=K3b projekti info
-Name[fa]= اطلاعات پروژۀ K3b
-Name[fi]=K3b-projektin kuvaus
-Name[fr]=Information sur le projet K3b
-Name[ga]=Eolas faoin Tionscadal K3b
-Name[gl]=Informazón de Proxecto K3b
-Name[hu]=K3b-projektinformáció
-Name[is]=K3b verkefnisupplýsingar
-Name[it]=Informazioni progetto K3b
-Name[ja]=K3b プロジェクト情報
-Name[km]=ព័ត៌មាន​របស់​​គម្រោង K3b
-Name[lt]=K3b projekto informacija
-Name[mk]=Информации за проект од K3b
-Name[nb]=K3b-prosjektinformasjon
-Name[nds]=K3b-Projektinformatschonen
-Name[nl]=K3b-projectinformatie
-Name[nn]=K3b-prosjektinfo
-Name[pa]=K3b ਪ੍ਰੋਜੈੱਕਟ ਜਾਣਕਾਰੀ
-Name[pl]=Informacja dla projektu K3b
-Name[pt]=Informação do Projecto do K3b
-Name[pt_BR]=Informações do Projeto do K3b
-Name[ru]=Свдения о проекте K3b
-Name[sk]=K3b informácie o projekte
-Name[sr]=Инфо о K3b пројекту
-Name[sr@Latn]=Info o K3b projektu
-Name[sv]=K3b-projektinformation
-Name[tr]=K3b Proje Bilgisi
-Name[uk]=Інформація проекту K3b
-Name[uz]=K3b loyihasi haqida maʼlumot
-Name[uz@cyrillic]=K3b лойиҳаси ҳақида маълумот
-Name[zh_CN]=K3b 方案信息
-Name[zh_TW]=K3b 專案資訊
-ServiceTypes=KFilePlugin
-X-TDE-Library=kfile_k3b
-MimeType=application/x-k3b
-PreferredGroups=General
-PreferredItems=documenttype
diff --git a/kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.cpp b/kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.cpp
deleted file mode 100644
index 953f0e7..0000000
--- a/kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.cpp
+++ /dev/null
@@ -1,135 +0,0 @@
-/*
- *
- * $Id: sourceheader,v 1.3 2005/01/19 13:03:46 trueg Exp $
- * Copyright (C) 2005 Sebastian Trueg <trueg@k3b.org>
- *
- * This file is part of the K3b project.
- * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
- *
- * 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.
- * See the file "COPYING" for the exact licensing terms.
- */
-
-
-#include <config.h>
-
-#include "kfile_k3bprojectfileplugin.h"
-#include "kostore/koStore.h"
-#include "kostore/koStoreDevice.h"
-
-#include <k3bdoc.h>
-
-#include <kgenericfactory.h>
-
-#include <tqtextstream.h>
-#include <tqdom.h>
-#include <tqfile.h>
-
-
-
-K_EXPORT_COMPONENT_FACTORY(kfile_k3b, KGenericFactory<K3bProjectFilePlugin>("kfile_k3b"))
-
-
-K3bProjectFilePlugin::K3bProjectFilePlugin( TQObject *parent, const char *name,
- const TQStringList &args)
- : KFilePlugin(parent, name, args)
-{
- KFileMimeTypeInfo* info = addMimeTypeInfo( "application/x-k3b" );
-
- KFileMimeTypeInfo::GroupInfo* group = addGroupInfo( info, "General", i18n("General") );
-
- addItemInfo( group, "documenttype", i18n("Document Type"), TQVariant::String );
-}
-
-
-bool K3bProjectFilePlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
-{
- if( !info.url().isLocalFile() ) {
- kdDebug() << "(K3bProjectFilePluginInfo) no local file." << endl;
- return false;
- }
-
- // open the file
- bool success = false;
- TQDomDocument xmlDoc;
-
- // try opening a store
- KoStore* store = KoStore::createStore( info.url().path(), KoStore::Read );
- if( store && !store->bad() && store->open( "maindata.xml" ) ) {
- TQIODevice* dev = store->device();
- dev->open( IO_ReadOnly );
- if( xmlDoc.setContent( dev ) )
- success = true;
- dev->close();
- store->close();
- }
- else
- kdDebug() << "(K3bProjectFilePluginInfo) failed to open the store." << endl;
-
- if( success ) {
- // check the documents DOCTYPE
- K3bDoc::DocType type = K3bDoc::AUDIO;
- if( xmlDoc.doctype().name() == "k3b_audio_project" )
- type = K3bDoc::AUDIO;
- else if( xmlDoc.doctype().name() == "k3b_data_project" )
- type = K3bDoc::DATA;
- else if( xmlDoc.doctype().name() == "k3b_vcd_project" )
- type = K3bDoc::VCD;
- else if( xmlDoc.doctype().name() == "k3b_mixed_project" )
- type = K3bDoc::MIXED;
- else if( xmlDoc.doctype().name() == "k3b_movix_project" )
- type = K3bDoc::MOVIX;
- else if( xmlDoc.doctype().name() == "k3b_movixdvd_project" )
- type = K3bDoc::MOVIX_DVD;
- else if( xmlDoc.doctype().name() == "k3b_dvd_project" )
- type = K3bDoc::DVD;
- else if( xmlDoc.doctype().name() == "k3b_video_dvd_project" )
- type = K3bDoc::VIDEODVD;
- else {
- kdDebug() << "(K3bDoc) unknown doc type: " << xmlDoc.doctype().name() << endl;
- success = false;
- }
-
- TQString stringType;
- switch( type ) {
- case K3bDoc::AUDIO:
- stringType = i18n("Audio CD");
- break;
- case K3bDoc::DATA:
- stringType = i18n("Data CD");
- break;
- case K3bDoc::MIXED:
- stringType = i18n("Mixed Mode CD");
- break;
- case K3bDoc::VCD:
- stringType = i18n("Video CD");
- break;
- case K3bDoc::MOVIX:
- stringType = i18n("eMovix CD");
- break;
- case K3bDoc::MOVIX_DVD:
- stringType = i18n("eMovix DVD");
- break;
- case K3bDoc::DVD:
- stringType = i18n("Data DVD");
- break;
- case K3bDoc::VIDEODVD:
- stringType = i18n("Video DVD");
- break;
- }
-
- // and finally display it!
- KFileMetaInfoGroup group = appendGroup(info, "General");
- appendItem( group, "documenttype", stringType );
- }
-
- delete store;
-
- return success;
-}
-
-#include "kfile_k3bprojectfileplugin.moc"
-
diff --git a/kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.h b/kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.h
deleted file mode 100644
index e53ebce..0000000
--- a/kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- *
- * $Id: sourceheader,v 1.3 2005/01/19 13:03:46 trueg Exp $
- * Copyright (C) 2005 Sebastian Trueg <trueg@k3b.org>
- *
- * This file is part of the K3b project.
- * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
- *
- * 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.
- * See the file "COPYING" for the exact licensing terms.
- */
-
-#ifndef __KFILE_K3BPROJECTFILEPLUGIN_H__
-#define __KFILE_K3BPROJECTFILEPLUGIN_H__
-
-/**
- * Note: For further information look into <$TDEDIR/include/kfilemetainfo.h>
- */
-#include <kfilemetainfo.h>
-
-class TQStringList;
-
-class K3bProjectFilePlugin: public KFilePlugin
-{
- Q_OBJECT
-
-
- public:
- K3bProjectFilePlugin( TQObject *parent, const char *name, const TQStringList& args );
-
- virtual bool readInfo( KFileMetaInfo& info, uint what);
-};
-
-#endif
-