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

mailcommon

  • MailCommon
  • SnippetsModel
Public Types | Signals | Public Member Functions | Protected Member Functions | List of all members
MailCommon::SnippetsModel Class Reference

#include <snippetsmodel_p.h>

Inheritance diagram for MailCommon::SnippetsModel:
Inheritance graph
[legend]

Public Types

enum  Role { IsGroupRole = Qt::UserRole + 1, NameRole, TextRole, KeySequenceRole }
 

Signals

void dndDone ()
 

Public Member Functions

 SnippetsModel (QObject *parent=0)
 
 ~SnippetsModel ()
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &index, int role) const
 
virtual bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
virtual QMimeData * mimeData (const QModelIndexList &indexes) const
 
virtual QStringList mimeTypes () const
 
virtual QModelIndex parent (const QModelIndex &index) const
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
virtual Qt::DropActions supportedDropActions () const
 

Protected Member Functions

virtual bool insertRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
virtual bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 

Detailed Description

Definition at line 30 of file snippetsmodel_p.h.

Member Enumeration Documentation

enum MailCommon::SnippetsModel::Role
Enumerator
IsGroupRole 

Returns whether the index represents a group.

NameRole 

The name of a snippet or group.

TextRole 

The text of a snippet.

KeySequenceRole 

The key sequence to activate a snippet.

Definition at line 34 of file snippetsmodel_p.h.

Constructor & Destructor Documentation

SnippetsModel::SnippetsModel ( QObject *  parent = 0)
explicit

Definition at line 143 of file snippetsmodel.cpp.

SnippetsModel::~SnippetsModel ( )

Definition at line 155 of file snippetsmodel.cpp.

Member Function Documentation

int SnippetsModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Definition at line 160 of file snippetsmodel.cpp.

QVariant SnippetsModel::data ( const QModelIndex &  index,
int  role 
) const
virtual

Definition at line 198 of file snippetsmodel.cpp.

void MailCommon::SnippetsModel::dndDone ( )
signal
bool SnippetsModel::dropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  column,
const QModelIndex &  parent 
)
virtual

Definition at line 366 of file snippetsmodel.cpp.

Qt::ItemFlags SnippetsModel::flags ( const QModelIndex &  index) const
virtual

Definition at line 227 of file snippetsmodel.cpp.

QModelIndex SnippetsModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
virtual

Definition at line 241 of file snippetsmodel.cpp.

bool SnippetsModel::insertRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)
protectedvirtual

Definition at line 295 of file snippetsmodel.cpp.

QMimeData * SnippetsModel::mimeData ( const QModelIndexList &  indexes) const
virtual

Definition at line 341 of file snippetsmodel.cpp.

QStringList SnippetsModel::mimeTypes ( ) const
virtual

Definition at line 334 of file snippetsmodel.cpp.

QModelIndex SnippetsModel::parent ( const QModelIndex &  index) const
virtual

Definition at line 263 of file snippetsmodel.cpp.

bool SnippetsModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)
protectedvirtual

Definition at line 315 of file snippetsmodel.cpp.

int SnippetsModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Definition at line 279 of file snippetsmodel.cpp.

bool SnippetsModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
virtual

Definition at line 165 of file snippetsmodel.cpp.

Qt::DropActions SnippetsModel::supportedDropActions ( ) const
virtual

Definition at line 417 of file snippetsmodel.cpp.


The documentation for this class was generated from the following files:
  • snippetsmodel_p.h
  • snippetsmodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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