• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kapptemplate

  • sources
  • kde-4.12
  • kdesdk
  • kapptemplate
  • templates
  • C++
  • runner
runner/%{APPNAMELC}.cpp
Go to the documentation of this file.
1 #include "%{APPNAMELC}.h"
2 
3 #include <KDebug>
4 #include <KIcon>
5 
6 %{APPNAME}::%{APPNAME}(QObject *parent, const QVariantList& args)
7  : Plasma::AbstractRunner(parent, args)
8 {
9  Q_UNUSED(args);
10  setObjectName("%{APPNAME}");
11 }
12 
13 %{APPNAME}::~%{APPNAME}()
14 {
15 }
16 
17 
18 void %{APPNAME}::match(Plasma::RunnerContext &context)
19 {
20 
21  const QString term = context.query();
22  if (term.length() < 3) {
23  return;
24  }
25  //TODO
26 }
27 
28 void %{APPNAME}::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match)
29 {
30  Q_UNUSED(context)
31 }
32 
33 #include "%{APPNAMELC}.moc"
%{APPNAMELC}.h
APPNAME
main APPNAME
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kapptemplate

Skip menu "kapptemplate"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal