KDE Platform 4

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
KDE Platform 4
KDE Mascot Konqi for KDE Frameworks.png
Original author(s) KDE
Developer(s) KDE
Initial release 11 January 2008; 10 years ago (2008-01-11)[1]
Last release 4.14.12 (September 15, 2015; 2 years ago (2015-09-15)) [±][2]
Repository
Written in C++[3][4]
Type
License GNU Lesser General Public License (LGPL)

KDE Platform 4 is a collection of libraries and software frameworks by KDE that serve as technological foundation for KDE Software Compilation 4 distributed under the GNU Lesser General Public License (LGPL). KDE Platform 4 is the successor to KDElibs and the predecessor of KDE Frameworks 5. KDE Platform 4 is the only version of KDE Platform, see KDE’s brand repositioning.

Technologies

Technologies superseded in KDE Platform 4

KParts

KParts is the component framework for the KDE Plasma desktop environment. An individual component is called a KPart. KParts are analogous to Bonobo components in GNOME and ActiveX controls in Microsoft's Component Object Model. Konsole is available as a KPart and is used in applications like Konqueror and Kate.

Example uses of KParts:

External links
  • Creating and Using Components (KParts) (from KDE)
  • Writing Plugins For KDE Applications (from KDE)

Solid

Solid is a device integration framework for KDE Platform 4, the current release of KDE. It functions on similar principles to KDE's multimedia pillar Phonon; rather than managing hardware on its own, it makes existing solutions accessible through a single API. The current solution uses udev, NetworkManager and BlueZ (the official Linux Bluetooth stack). However, any and all parts can be replaced without breaking the application, making applications using Solid extremely flexible and portable.[6][7] Work is underway to build a Solid backend for the Windows port of KDE based on Windows Management Instrumentation.[8]

Solid is broken up into many hardware “domains” which operate independently. Domains may be added as needed. For instance, one domain may be Bluetooth, and another may be power management. Solid is used extensively within KDE 4 and its popular applications, making them more aware of hardware events and easier to develop.

External links
  • Solid home page
  • KDE dot article on Solid

Hello world example

#include <KApplication>
#include <KAboutData>
#include <KCmdLineArgs>
#include <KMessageBox>
#include <KLocale>
 
int main (int argc, char *argv[])
{
    KAboutData aboutData(
                         // The program name used internally.
                         "tutorial1",
                         // The message catalog name
                         // If null, program name is used instead.
                         0,
                         // A displayable program name string.
                         ki18n("Tutorial 1"),
                         // The program version string.
                         "1.0",
                         // Short description of what the app does.
                         ki18n("Displays a KMessageBox popup"),
                         // The license this code is released under
                         KAboutData::License_GPL,
                         // Copyright Statement
                         ki18n("Copyright (c) 2007"),
                         // Optional text shown in the About box.
                         // Can contain any information desired.
                         ki18n("Some text..."),
                         // The program homepage string.
                         "http://example.com/",
                         // The bug report email address
                         "[email protected]");
 
    KCmdLineArgs::init( argc, argv, &aboutData );
    KApplication app;
    KGuiItem yesButton( i18n( "Hello" ), QString(),
                        i18n( "This is a tooltip" ),
                        i18n( "This is a WhatsThis help text." ) );
    KMessageBox::questionYesNo( 0, i18n( "Hello World" ),
                                i18n( "Hello" ), yesButton );
    return 0;
}

References

  1. ^ "KDE 4.0 Release Announcement". 
  2. ^ "KDE Ships KDE Applications 15.08.1". KDE. 15 September 2015. Retrieved 16 September 2015. 
  3. ^ "The KDE development platform". Retrieved 2010-11-26. 
  4. ^ "Development/Languages". Retrieved 2010-12-04. 
  5. ^ http://owncloud.org/
  6. ^ K Desktop Environment - KDE 4.0 Released
  7. ^ UPower, UDev and UDisks Support, Metadata Backup
  8. ^ KDE Commit Digest issue 107

External links

  • TechBase, documentation for KDE developers
  • KDE Projects, overview of all projects within git.kde.org
  • KDE quick Git source code browser
  • KDE Bug Tracking System
  • KDE tutorial first program
Retrieved from "https://en.wikipedia.org/w/index.php?title=KDE_Platform_4&oldid=813571064"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/KDE_Platform_4
This page is based on the copyrighted Wikipedia article "KDE Platform 4"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA