libtdepim

KPIM Namespace Reference

Classes

class  SelectionItem
class  BroadcastStatus
class  ClickLineEdit
class  CollectingProcess
class  ConfigManager
class  DiffAlgoDisplay
class  DistributionList
class  KMailCompletion
class  KPixmapRegionSelectorDialog
class  KPixmapRegionSelectorWidget
class  LdapObject
class  LdapClient
struct  LdapResult
class  LdapSearch
class  OverlayWidget
class  PluginLoader
class  ProgressManager
class  ResourceABC

Typedefs

typedef TQValueList< LdapResultLdapResultList
typedef TQMap< TQString, TQPair< int, int > > CompletionItemsMap
typedef TQValueList< TQByteArray > LdapAttrValue
typedef TQMap< TQString, LdapAttrValue > LdapAttrMap
typedef TQValueList< MailSummary > MailList
typedef TQMap< ProgressItem *, bool > ProgressItemMap

Functions

static void swapItems (CompletionViewItem *one, CompletionViewItem *other)
static void msgDialog (const TQString &msg)
TDE_EXPORT TQCString kFileToString (const TQString &fileName, bool ensureNewline=true, bool withDialogs=true) TDE_EXPORT
TDE_EXPORT bool kBytesToFile (const char *aBuffer, int len, const TQString &aFileName, bool aAskIfExists, bool aBackup, bool aVerbose) TDE_EXPORT
TDE_EXPORT bool kCStringToFile (const TQCString &aBuffer, const TQString &aFileName, bool aAskIfExists, bool aBackup, bool aVerbose)
TDE_EXPORT bool kByteArrayToFile (const TQByteArray &buffer, const TQString &fileName, bool askIfExists=false, bool createBackup=true, bool withDialogs=true) TDE_EXPORT
TQString checkAndCorrectPermissionsIfPossible (const TQString &toCheck, const bool recursive, const bool wantItReadable, const bool wantItWritable)
bool checkAndCorrectPermissionsIfPossibleWithErrorHandling (TQWidget *parent, const TQString &toCheck, const bool recursive, const bool wantItReadable, const bool wantItWritable)

Variables

static const char *const quoteFontSizes [] = { "85", "80", "75" }
template<typename T, typename T_config>
PluginLoader< T, T_config > * PluginLoader< T, T_config >::mSelf = 0
static KStaticDeleter< ProgressManagerprogressManagerDeleter

Detailed Description

TDEPIM classes for drag and drop of mails.

// Code example for drag and drop enabled widget

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

Typedef Documentation

◆ CompletionItemsMap

typedef TQMap< TQString, TQPair<int,int> > KPIM::CompletionItemsMap

Definition at line 48 of file addresseelineedit.h.

◆ LdapAttrMap

typedef TQMap<TQString,LdapAttrValue > KPIM::LdapAttrMap

Definition at line 44 of file ldapclient.h.

◆ LdapAttrValue

typedef TQValueList<TQByteArray> KPIM::LdapAttrValue

Definition at line 43 of file ldapclient.h.

◆ LdapResultList

typedef TQValueList< LdapResult > KPIM::LdapResultList

Definition at line 47 of file addresseelineedit.h.

◆ MailList

typedef TQValueList<MailSummary> KPIM::MailList

Definition at line 83 of file maillistdrag.h.

◆ ProgressItemMap

typedef TQMap<ProgressItem*, bool> KPIM::ProgressItemMap

Definition at line 37 of file progressmanager.h.

Function Documentation

◆ checkAndCorrectPermissionsIfPossible()

TQString KPIM::checkAndCorrectPermissionsIfPossible ( const TQString & 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
toCheckThe file or folder of which the permissions should be checked.
recursiveSet to true, it will check the contents of a folder for the permissions recursively. If false only toCheck will be checked.
wantItReadableSet to true, it will check for read permissions. If the read permissions are not available, there will be a attempt to correct this.
wantItWritableSet 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 tdefileio.cpp.

◆ checkAndCorrectPermissionsIfPossibleWithErrorHandling()

bool KPIM::checkAndCorrectPermissionsIfPossibleWithErrorHandling ( TQWidget * parent,
const TQString & 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
parentIf 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.
toCheckThe file or folder of which the permissions should be checked.
recursiveSet to true, it will check the contents of a folder for the permissions recursively. If false only toCheck will be checked.
wantItReadableSet to true, it will check for read permissions. If the read permissions are not available, there will be a attempt to correct this.
wantItWritableSet 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 tdefileio.cpp.

◆ kByteArrayToFile()

bool KPIM::kByteArrayToFile ( const TQByteArray & aBuffer,
const TQString & aFileName,
bool aAskIfExists,
bool aBackup,
bool aVerbose )

Does not stop at NUL.

Definition at line 263 of file tdefileio.cpp.

◆ kBytesToFile()

bool KPIM::kBytesToFile ( const char * aBuffer,
int len,
const TQString & 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 tdefileio.cpp.

◆ kCStringToFile()

bool KPIM::kCStringToFile ( const TQCString & aBuffer,
const TQString & aFileName,
bool aAskIfExists,
bool aBackup,
bool aVerbose )

Definition at line 256 of file tdefileio.cpp.

◆ kFileToString()

TQCString KPIM::kFileToString ( const TQString & 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 tdefileio.cpp.

◆ msgDialog()

void KPIM::msgDialog ( const TQString & msg)
static

Definition at line 29 of file tdefileio.cpp.

◆ swapItems()

void KPIM::swapItems ( CompletionViewItem * one,
CompletionViewItem * other )
static

Definition at line 254 of file completionordereditor.cpp.

Variable Documentation

◆ PluginLoader< T, T_config >::mSelf

template<typename T, typename T_config>
PluginLoader<T,T_config>* KPIM::PluginLoader< T, T_config >::mSelf = 0

Definition at line 119 of file pluginloader.h.

◆ progressManagerDeleter

KStaticDeleter<ProgressManager> KPIM::progressManagerDeleter
static

Definition at line 139 of file progressmanager.cpp.

◆ quoteFontSizes

const char* const KPIM::quoteFontSizes[] = { "85", "80", "75" }
static

Definition at line 212 of file csshelper.cpp.