summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-03-27 02:38:49 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-03-27 02:38:49 -0500
commit747375435b6d0b1ce94e3658c51f349f241566c5 (patch)
tree7724c57b3912fd6e4298b79a7cbe744441938405 /tdefile-plugins
parentef338f1187c7f4520be38c5c6b394f863cccb5d4 (diff)
downloadtdelibs-747375435b6d0b1ce94e3658c51f349f241566c5.tar.gz
tdelibs-747375435b6d0b1ce94e3658c51f349f241566c5.zip
Add metadata to shared libraries
Update metadata information
Diffstat (limited to 'tdefile-plugins')
-rw-r--r--tdefile-plugins/elf/tdefile_elf.cpp27
-rw-r--r--tdefile-plugins/elf/tdefile_elf.desktop2
2 files changed, 28 insertions, 1 deletions
diff --git a/tdefile-plugins/elf/tdefile_elf.cpp b/tdefile-plugins/elf/tdefile_elf.cpp
index 7308a40d1..f87b536ed 100644
--- a/tdefile-plugins/elf/tdefile_elf.cpp
+++ b/tdefile-plugins/elf/tdefile_elf.cpp
@@ -50,6 +50,7 @@ KElfPlugin::KElfPlugin(TQObject *parent, const char *name,
: KFilePlugin(parent, name, args)
{
+ // Executables
KFileMimeTypeInfo* info = addMimeTypeInfo( "application/x-executable" );
KFileMimeTypeInfo::GroupInfo* group = 0L;
@@ -70,6 +71,30 @@ KElfPlugin::KElfPlugin(TQObject *parent, const char *name,
item = addItemInfo(group, "Version", i18n("Version"), TQVariant::String);
item = addItemInfo(group, "DateTime", i18n("Compilation Date/Time"), TQVariant::String);
item = addItemInfo(group, "SystemIcon", i18n("Requested Icon"), TQVariant::String);
+ item = addItemInfo(group, "SCMModule", i18n("SCM Module"), TQVariant::String);
+ item = addItemInfo(group, "SCMRevision", i18n("SCM Revision"), TQVariant::String);
+ item = addItemInfo(group, "Notes", i18n("Comments"), TQVariant::String);
+
+ item = addItemInfo(group2, "EmbeddedIcon", i18n("Icon Name(s)"), TQVariant::String);
+
+ // Shared libraries
+ info = addMimeTypeInfo( "application/x-sharedlib" );
+
+ group = addGroupInfo(info, "Technical", i18n("Embedded Metadata"));
+ group2 = addGroupInfo(info, "Icon", i18n("Embedded Icon(s)"));
+
+ item = addItemInfo(group, "Name", i18n("Internal Name"), TQVariant::String);
+ item = addItemInfo(group, "Description", i18n("Description"), TQVariant::String);
+ item = addItemInfo(group, "License", i18n("License"), TQVariant::String);
+ item = addItemInfo(group, "Copyright", i18n("Copyright"), TQVariant::String);
+ item = addItemInfo(group, "Authors", i18n("Author(s)"), TQVariant::String);
+ item = addItemInfo(group, "Product", i18n("Product"), TQVariant::String);
+ item = addItemInfo(group, "Organization", i18n("Organization"), TQVariant::String);
+ item = addItemInfo(group, "Version", i18n("Version"), TQVariant::String);
+ item = addItemInfo(group, "DateTime", i18n("Compilation Date/Time"), TQVariant::String);
+ item = addItemInfo(group, "SystemIcon", i18n("Requested Icon"), TQVariant::String);
+ item = addItemInfo(group, "SCMModule", i18n("SCM Module"), TQVariant::String);
+ item = addItemInfo(group, "SCMRevision", i18n("SCM Revision"), TQVariant::String);
item = addItemInfo(group, "Notes", i18n("Comments"), TQVariant::String);
item = addItemInfo(group2, "EmbeddedIcon", i18n("Icon Name(s)"), TQVariant::String);
@@ -100,6 +125,8 @@ bool KElfPlugin::readInfo( KFileMetaInfo& info, uint what)
appendItem(group, "Version", elf_get_resource(handle, ".metadata_version"));
appendItem(group, "DateTime", elf_get_resource(handle, ".metadata_datetime"));
appendItem(group, "SystemIcon", elf_get_resource(handle, ".metadata_sysicon"));
+ appendItem(group, "SCMModule", elf_get_resource(handle, ".metadata_scmmodule"));
+ appendItem(group, "SCMRevision", elf_get_resource(handle, ".metadata_scmrevision"));
appendItem(group, "Notes", elf_get_resource(handle, ".metadata_notes"));
TQString iconListing;
diff --git a/tdefile-plugins/elf/tdefile_elf.desktop b/tdefile-plugins/elf/tdefile_elf.desktop
index ab8efe317..715ee923c 100644
--- a/tdefile-plugins/elf/tdefile_elf.desktop
+++ b/tdefile-plugins/elf/tdefile_elf.desktop
@@ -61,6 +61,6 @@ Name[zh_TW]=ELF 資訊
Name[zu]=Ulwazi lwe-ELF
ServiceTypes=KFilePlugin
X-TDE-Library=tdefile_elf
-MimeType=application/x-executable
+MimeType=application/x-executable;application/x-sharedlib
PreferredItems=Name,Description,License,Copyright,Authors,Product,Organization,Version,DateTime,Notes"
SupportsThumbnail=false