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

kget

Public Types | Public Slots | Public Member Functions | List of all members
AutoPasteModel Class Reference

#include <autopastemodel.h>

Inheritance diagram for AutoPasteModel:
Inheritance graph
[legend]

Public Types

enum  DataType { Type = 0, Pattern, PatternSyntax }
 
enum  PatternSyntaxData { Wildcard = 0, RegExp }
 
enum  TypeData { Include = 0, Exclude }
 

Public Slots

void load ()
 
void resetDefaults ()
 
void save ()
 

Public Member Functions

 AutoPasteModel (QObject *parent=0)
 
 ~AutoPasteModel ()
 
void addItem (TypeData dataType, PatternSyntaxData patternSyntax, const QString &pattern)
 
int columnCount (const QModelIndex &index=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
bool moveItem (int sourceRow, int destinationRow)
 
bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
int rowCount (const QModelIndex &index=QModelIndex()) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 

Detailed Description

Definition at line 44 of file autopastemodel.h.

Member Enumeration Documentation

enum AutoPasteModel::DataType
Enumerator
Type 
Pattern 
PatternSyntax 

Definition at line 49 of file autopastemodel.h.

enum AutoPasteModel::PatternSyntaxData
Enumerator
Wildcard 
RegExp 

Definition at line 58 of file autopastemodel.h.

enum AutoPasteModel::TypeData
Enumerator
Include 
Exclude 

Definition at line 54 of file autopastemodel.h.

Constructor & Destructor Documentation

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

Definition at line 139 of file autopastemodel.cpp.

AutoPasteModel::~AutoPasteModel ( )

Definition at line 144 of file autopastemodel.cpp.

Member Function Documentation

void AutoPasteModel::addItem ( TypeData  dataType,
PatternSyntaxData  patternSyntax,
const QString &  pattern 
)

Adds an an item.

Note
do not use this for loading data
See also
load()

Definition at line 275 of file autopastemodel.cpp.

int AutoPasteModel::columnCount ( const QModelIndex &  index = QModelIndex()) const

Definition at line 157 of file autopastemodel.cpp.

QVariant AutoPasteModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Definition at line 183 of file autopastemodel.cpp.

Qt::ItemFlags AutoPasteModel::flags ( const QModelIndex &  index) const

Definition at line 222 of file autopastemodel.cpp.

QVariant AutoPasteModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Definition at line 166 of file autopastemodel.cpp.

void AutoPasteModel::load ( )
slot

Loads the stored data.

See also
save()

Definition at line 313 of file autopastemodel.cpp.

bool AutoPasteModel::moveItem ( int  sourceRow,
int  destinationRow 
)

Moves an item to a new position.

Parameters
sourceRowthe current row of the selected item
destinationRowis the new row before the move, i.e. if sourceRow was not removed from the model
See also
QAbstractItemModel::beginMoveRows()

Definition at line 297 of file autopastemodel.cpp.

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

Definition at line 259 of file autopastemodel.cpp.

void AutoPasteModel::resetDefaults ( )
slot

Resets the model to the default data.

Definition at line 341 of file autopastemodel.cpp.

int AutoPasteModel::rowCount ( const QModelIndex &  index = QModelIndex()) const

Definition at line 148 of file autopastemodel.cpp.

void AutoPasteModel::save ( )
slot

Saves the current data.

See also
load()

Definition at line 324 of file autopastemodel.cpp.

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

Definition at line 229 of file autopastemodel.cpp.


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

KDE's Doxygen guidelines are available online.

kget

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

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