• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Plasma

extenderitemmimedata.cpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2008 by Rob Scheepmaker <r.scheepmaker@student.utwente.nl>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor,
00017  * Boston, MA  02110-1301  USA
00018  */
00019 
00020 #include "extenderitemmimedata_p.h"
00021 
00022 #include "../extenderitem.h"
00023 
00024 #include <QMimeData>
00025 
00026 namespace Plasma
00027 {
00028 
00029 ExtenderItemMimeData::ExtenderItemMimeData() : QMimeData()
00030 {
00031 }
00032 
00033 ExtenderItemMimeData::~ExtenderItemMimeData()
00034 {
00035 }
00036 
00037 QStringList ExtenderItemMimeData::formats() const
00038 {
00039     QStringList list;
00040     list.append(mimeType());
00041     return list;
00042 }
00043 
00044 bool ExtenderItemMimeData::hasFormat(const QString &type) const
00045 {
00046     return (type == mimeType());
00047 }
00048 
00049 void ExtenderItemMimeData::setExtenderItem(ExtenderItem *item)
00050 {
00051     m_extenderItem = item;
00052 }
00053 
00054 ExtenderItem *ExtenderItemMimeData::extenderItem() const
00055 {
00056     return m_extenderItem;
00057 }
00058 
00059 QString ExtenderItemMimeData::mimeType()
00060 {
00061     return "plasma/extenderitem";
00062 }
00063 
00064 } // namespace Plasma
00065 

Plasma

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal