• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • TDevelop Interfaces Library
 

TDevelop Interfaces Library

  • lib
  • interfaces
kdevplugincontroller.cpp
1/* This file is part of the KDE project
2 Copyright (C) 2004 Alexander Dymo <adymo@kdevelop.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19#include "kdevplugincontroller.h"
20
21#include "kdevplugin.h"
22
23KDevPluginController::KDevPluginController()
24{
25}
26
27TDETrader::OfferList KDevPluginController::query(const TQString &serviceType,
28 const TQString &constraint)
29{
30 TQString versionConstraint =
31 TQString::fromLatin1("[X-TDevelop-Version] == %1").arg(TDEVELOP_PLUGIN_VERSION);
32
33 TQString newConstraint;
34 if (!constraint.isEmpty()) {
35 newConstraint = TQString("( %1 ) and %2").arg(constraint).arg(versionConstraint);
36 } else {
37 newConstraint = versionConstraint;
38 }
39
40 return TDETrader::self()->query(serviceType, newConstraint);
41}
42
43TDETrader::OfferList KDevPluginController::queryPlugins(const TQString &constraint)
44{
45 return query("TDevelop/Plugin", constraint);
46}
47
48KURL::List KDevPluginController::profileResources(const TQString &/*nameFilter*/)
49{
50 return KURL::List();
51}
52
53KURL::List KDevPluginController::profileResourcesRecursive(const TQString &/*nameFilter*/)
54{
55 return KURL::List();
56}
57
58#include "kdevplugincontroller.moc"
KDevPluginController::KDevPluginController
KDevPluginController()
Constructor.
Definition kdevplugincontroller.cpp:23
KDevPluginController::profileResourcesRecursive
virtual KURL::List profileResourcesRecursive(const TQString &nameFilter)
Reimplement this function only if your shell supports plugin profiles.
Definition kdevplugincontroller.cpp:53
KDevPluginController::query
static TDETrader::OfferList query(const TQString &serviceType, const TQString &constraint)
Queries KDevelop services.
Definition kdevplugincontroller.cpp:27
KDevPluginController::profileResources
virtual KURL::List profileResources(const TQString &nameFilter)
Reimplement this function only if your shell supports plugin profiles.
Definition kdevplugincontroller.cpp:48
KDevPluginController::queryPlugins
static TDETrader::OfferList queryPlugins(const TQString &constraint)
Queries TDevelop plugins.
Definition kdevplugincontroller.cpp:43
kdevplugin.h
TDevelop plugin interface.
TDEVELOP_PLUGIN_VERSION
#define TDEVELOP_PLUGIN_VERSION
Current TDevelop plugin interface version.
Definition kdevplugin.h:46
kdevplugincontroller.h
TDevelop plugin controller interface.

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for TDevelop Interfaces Library by doxygen 1.9.8
This website is maintained by Timothy Pearson.