libkdepim

KPIM Namespace Reference


Detailed Description

KDEPIM classes for drag and drop of mails.

// Code example for drag and drop enabled widget

void SomeWidget::contentsDropEvent(QDropEvent *e) { if (e->provides(MailListDrag::format())) { MailList mailList; MailListDrag::decode( e, mailList ); ...


Classes

class  AddresseeDiffAlgo
class  AddresseeEmailSelection
class  AddresseeLineEdit
class  Selection
class  SelectionItem
 Internal helper class. More...
class  AddresseeSelector
class  AddresseeSelectorDialog
class  AddresseeView
class  AddresseeViewItem
class  AddressesDialog
class  BroadcastStatus
 Provides a singleton which broadcasts status messages by emitting signals. More...
class  CalendarDiffAlgo
class  CategoryEditDialog
class  CategorySelectDialog
class  ClickLineEdit
 This class provides a KLineEdit which contains a greyed-out hinting text as long as the user didn't enter any textLineEdit with customizable "Click here" text. More...
class  CollectingProcess
 An output collecting KProcess class. More...
class  CompletionItem
class  CompletionItemList
class  CompletionOrderEditor
class  ConfigManager
 Class for managing a set of config options. More...
class  CSSHelper
class  DesignerFields
class  DiffAlgoDisplay
 DiffAlgo and DiffAlgoDisplay work together for displaying differences between two PIM objects like contacts, events or todos. More...
class  DiffAlgo
class  DistributionList
 Distribution list of email addresses. More...
class  EmbeddedURLPage
class  HTMLDiffAlgoDisplay
class  AddressBookServiceIface
class  KCMDesignerFields
class  KMailCompletion
 KMailCompletion allows lookup of email addresses by keyword. More...
class  KPixmapRegionSelectorDialog
 A dialog that uses a KPixmapRegionSelectorWidget to allow the user to select a region of an image. More...
class  KPixmapRegionSelectorWidget
 KPixmapRegionSelectorWidget is a widget that shows a picture and provides the user with a friendly way to select a rectangular subregion of the pixmap. More...
class  KXFace
class  LdapServer
class  LdapObject
 This class is internal. More...
class  LdapClient
 This class is internal. More...
struct  LdapResult
 Structure describing one result returned by a LDAP query. More...
class  LdapSearch
 This class is internal. More...
class  MailSummary
class  MailTextSource
class  MailListDrag
class  OverlayWidget
 This is a widget that can align itself with another one, without using a layout, so that it can actually be on top of other widgets. More...
class  PluginLoader
 A generic plugin loader for when KPart::Plugin is overkill. More...
class  PluginMetaData
class  PluginLoaderBase
class  TransactionItemView
class  TransactionItem
class  ProgressDialog
class  ProgressItem
class  ProgressManager
 The ProgressManager singleton keeps track of all ongoing transactions and notifies observers (progress dialogs) when their progress percent value changes, when they are completed (by their owner), and when they are canceled. More...
class  ResourceABC
 This class is the implementation of subfolder resources for KABC. More...
class  SSLLabel
class  StatusbarProgressWidget

Namespaces

namespace  ThreadWeaver

Typedefs

typedef QValueList< LdapResultLdapResultList
typedef QMap< QString, QPair<
int, int > > 
CompletionItemsMap
typedef QValueList< QByteArray > LdapAttrValue
typedef QMap< QString, LdapAttrValueLdapAttrMap
typedef QValueList< LdapResultLdapResultList
typedef QValueList< MailSummaryMailList
typedef QMap< ProgressItem *,
bool > 
ProgressItemMap

Functions

static void swapItems (CompletionViewItem *one, CompletionViewItem *other)
QColor darker (const QColor &c)
QColor desaturate (const QColor &c)
QColor fixValue (const QColor &c, int newV)
int getValueOf (const QColor &c)
int pointsToPixel (const QPaintDeviceMetrics &metrics, int pointSize)
static void msgDialog (const QString &msg)
KDE_EXPORT QCString kFileToString (const QString &fileName, bool ensureNewline=true, bool withDialogs=true) KDE_EXPORT
KDE_EXPORT bool kBytesToFile (const char *aBuffer, int len, const QString &aFileName, bool aAskIfExists, bool aBackup, bool aVerbose) KDE_EXPORT
KDE_EXPORT bool kCStringToFile (const QCString &aBuffer, const QString &aFileName, bool aAskIfExists, bool aBackup, bool aVerbose)
KDE_EXPORT bool kByteArrayToFile (const QByteArray &buffer, const QString &fileName, bool askIfExists=false, bool createBackup=true, bool withDialogs=true) KDE_EXPORT
QString checkAndCorrectPermissionsIfPossible (const QString &toCheck, const bool recursive, const bool wantItReadable, const bool wantItWritable)
bool checkAndCorrectPermissionsIfPossibleWithErrorHandling (QWidget *parent, const QString &toCheck, const bool recursive, const bool wantItReadable, const bool wantItWritable)

Variables

static const char *const AddressBookServiceIface_ftable [3][3]
static const int AddressBookServiceIface_ftable_hiddens [2]
static const char *const AddresseeLineEdit_ftable [2][3]
static const int AddresseeLineEdit_ftable_hiddens [1]
static const char *const quoteFontSizes [] = { "85", "80", "75" }
static KStaticDeleter< ProgressManagerprogressManagerDeleter

Function Documentation

QString KPIM::checkAndCorrectPermissionsIfPossible ( const QString &  toCheck,
const bool  recursive,
const bool  wantItReadable,
const bool  wantItWritable 
)

Checks and corrects the permissions of a file or folder, and if requested all files and folders below.

It gives back a list of files which do not have the right permissions. This list can be used to show to the user.

Parameters:
toCheck The file or folder of which the permissions should be checked.
recursive Set to true, it will check the contents of a folder for the permissions recursively. If false only toCheck will be checked.
wantItReadable Set to true, it will check for read permissions. If the read permissions are not available, there will be a attempt to correct this.
wantItWritable Set to true, it will check for write permissions. If the write permissions are not available, there will be a attempt to correct this.
Returns:
It will return a string with all files and folders which do not have the right permissions. If empty, then all permissions are ok.

Definition at line 271 of file kfileio.cpp.

bool KPIM::checkAndCorrectPermissionsIfPossibleWithErrorHandling ( QWidget *  parent,
const QString &  toCheck,
const bool  recursive,
const bool  wantItReadable,
const bool  wantItWritable 
)

Checks and corrects the permissions of a file or folder, and if requested all files and folders below.

If the permissions are not ok, it tries to correct them. If that fails then a warning with detailled information is given.

Parameters:
parent If parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
toCheck The file or folder of which the permissions should be checked.
recursive Set to true, it will check the contents of a folder for the permissions recursively. If false only toCheck will be checked.
wantItReadable Set to true, it will check for read permissions. If the read permissions are not available, there will be a attempt to correct this.
wantItWritable Set to true, it will check for write permissions. If the write permissions are not available, there will be a attempt to correct this.
Returns:
It will return true if all permissions in the end are ok. If false then the permissions are not ok and it was not possible to correct all errors.

Definition at line 368 of file kfileio.cpp.

KDE_EXPORT bool KPIM::kByteArrayToFile ( const QByteArray &  aBuffer,
const QString &  aFileName,
bool  aAskIfExists = false,
bool  aBackup = true,
bool  aVerbose = true 
)

Does not stop at NUL.

Definition at line 263 of file kfileio.cpp.

bool KPIM::kBytesToFile ( const char *  aBuffer,
int  len,
const QString &  aFileName,
bool  aAskIfExists,
bool  aBackup,
bool  aVerbose 
)

Save a file.

If withDialogs is FALSE no warning dialogs are opened if there are problems. Returns TRUE on success and FALSE on failure. Replaces existing files without warning if askIfExists==FALSE. Makes a copy if the file exists to filename~ if createBackup==TRUE.

Definition at line 176 of file kfileio.cpp.

QCString KPIM::kFileToString ( const QString &  fileName,
bool  ensureNewline = true,
bool  withDialogs = true 
)

Load a file.

Returns a pointer to the memory-block that contains the loaded file. Returns a null string if the file could not be loaded. If withDialogs is FALSE no warning dialogs are opened if there are problems. The string returned is always zero-terminated and therefore one byte longer than the file itself. If ensureNewline is TRUE the string will always have a trailing newline.

Definition at line 36 of file kfileio.cpp.


Variable Documentation

const char* const KPIM::AddressBookServiceIface_ftable[3][3] [static]

Initial value:

 {
    { "void", "importVCard(QString)", "importVCard(QString vCard)" },
    { "void", "importVCard(KURL)", "importVCard(KURL url)" },
    { 0, 0, 0 }
}

Definition at line 15 of file AddressBookServiceIface_skel.cpp.

Initial value:

 {
    0,
    0,
}

Definition at line 20 of file AddressBookServiceIface_skel.cpp.

const char* const KPIM::AddresseeLineEdit_ftable[2][3] [static]

Initial value:

 {
    { "void", "slotIMAPCompletionOrderChanged()", "slotIMAPCompletionOrderChanged()" },
    { 0, 0, 0 }
}

Definition at line 15 of file addresseelineedit_skel.cpp.

Initial value:

 {
    0,
}

Definition at line 19 of file addresseelineedit_skel.cpp.

KDE Home | KDE Accessibility Home | Description of Access Keys