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

kopete/kopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • kopete
  • chatwindow
  • a11y
chatwindowaccessiblewidgetfactory.cpp
Go to the documentation of this file.
1 /*
2  Copyright 2011 José Millán Soto <fid@gpul.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 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  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #include "chatwindowaccessiblewidgetfactory.h"
19 
20 #include <QtCore/qplugin.h>
21 #include "accessiblechatmessagepart.h"
22 
23 Q_EXPORT_PLUGIN(ChatWindowAccessibleWidgetFactory)
24 
25 QAccessibleInterface *ChatWindowAccessibleWidgetFactory::create( const QString &key, QObject *object )
26 {
27  if ( key == QLatin1String( "KHTMLView" ) ) {
28  return new AccessibleChatMessagePart( reinterpret_cast< KHTMLView* >( object ) );
29  }
30  return 0;
31 }
32 
33 ChatWindowAccessibleWidgetFactory::ChatWindowAccessibleWidgetFactory( QObject *parent ):
34  QAccessiblePlugin( parent )
35 {
36 }
37 
38 QStringList ChatWindowAccessibleWidgetFactory::keys() const
39 {
40  QStringList l;
41  l.append( QLatin1String( "KHTMLView" ) );
42  return l;
43 }
ChatWindowAccessibleWidgetFactory
Definition: chatwindowaccessiblewidgetfactory.h:24
QAccessibleInterface
accessiblechatmessagepart.h
ChatWindowAccessibleWidgetFactory::ChatWindowAccessibleWidgetFactory
ChatWindowAccessibleWidgetFactory(QObject *parent=0)
Definition: chatwindowaccessiblewidgetfactory.cpp:33
ChatWindowAccessibleWidgetFactory::keys
virtual QStringList keys() const
Definition: chatwindowaccessiblewidgetfactory.cpp:38
QList::append
void append(const T &value)
chatwindowaccessiblewidgetfactory.h
QObject
QString
QStringList
AccessibleChatMessagePart
Definition: accessiblechatmessagepart.h:31
QLatin1String
QAccessiblePlugin
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

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