kitchensync Library API Documentation

KSync::Profile Class Reference

A Profile keeps user settings like a name, the list of plugins to be loaded on activation, a list of where to read data from. More...

#include <profile.h>

Collaboration diagram for KSync::Profile:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QMap< QString, QStringPathMap
typedef QValueList< ProfileList

Public Member Functions

bool operator== (const Profile &)
 Profile ()
 Profile (const Profile &)
 ~Profile ()
QString name () const
QString uid () const
QString pixmap () const
bool confirmSync () const
bool confirmDelete () const
void setName (const QString &name)
void setUid (const QString &id)
void setPixmap (const QString &pix)
ActionPartService::List actionParts () const
void setActionParts (const ActionPartService::List &lst)
QString path (const QString &partName) const
void setPath (const QString &partName, const QString &path)
void setPaths (const PathMap &)
PathMap paths () const
void setConfirmSync (bool)
void setConfirmDelete (bool)
Profileoperator= (const Profile &)

Detailed Description

A Profile keeps user settings like a name, the list of plugins to be loaded on activation, a list of where to read data from.

...

Definition at line 39 of file profile.h.


Constructor & Destructor Documentation

Profile::Profile  ) 
 

constructs an empty Profile and generates a uid

Definition at line 28 of file profile.cpp.

Profile::Profile const Profile  ) 
 

copy c'tor

Definition at line 34 of file profile.cpp.

Profile::~Profile  ) 
 

destructs a Profile

Definition at line 39 of file profile.cpp.


Member Function Documentation

QString Profile::name  )  const
 

Returns:
the user given name of the profile

Definition at line 43 of file profile.cpp.

QString Profile::uid  )  const
 

Returns:
the uid of the Profile

Definition at line 48 of file profile.cpp.

QString Profile::pixmap  )  const
 

Returns:
a name of a Pixmap the use chose to associate

Definition at line 53 of file profile.cpp.

bool Profile::confirmSync  )  const
 

Returns:
if the write back should be confirmed by the user

Definition at line 63 of file profile.cpp.

bool Profile::confirmDelete  )  const
 

Returns:
if the deletion of Entries should be confirmed by the user

Definition at line 58 of file profile.cpp.

void Profile::setName const QString name  ) 
 

set the name

Parameters:
name the name of the Profile

Definition at line 68 of file profile.cpp.

void Profile::setUid const QString id  ) 
 

set the uid

Parameters:
id the id of the Profile

Definition at line 78 of file profile.cpp.

void Profile::setPixmap const QString pix  ) 
 

set the Pixmap name

Parameters:
pix The pixmap

Definition at line 73 of file profile.cpp.

ActionPartService::List Profile::actionParts  )  const
 

Returns:
the ActionParts to be loaded for the profile

Definition at line 88 of file profile.cpp.

void Profile::setActionParts const ActionPartService::List lst  ) 
 

set which parts to be loaded

Parameters:
lst The list of ActionPartServices

Definition at line 83 of file profile.cpp.

QString Profile::path const QString partName  )  const
 

Parts can save the file location inside a Profile path returns the PATH for a part.

Definition at line 118 of file profile.cpp.

void Profile::setPath const QString partName,
const QString path
 

sets the path for a partName to path The part name the path

Definition at line 103 of file profile.cpp.

void KSync::Profile::setPaths const PathMap  ) 
 

sets the path map

QMap< QString, QString > Profile::paths  )  const
 

returns the PathMap

Definition at line 93 of file profile.cpp.

void Profile::setConfirmSync bool   ) 
 

set if the user wants to confirm sync

Definition at line 108 of file profile.cpp.

void Profile::setConfirmDelete bool   ) 
 

set if the user wants to confirm deletions

Definition at line 113 of file profile.cpp.

Profile & Profile::operator= const Profile  ) 
 

copy operator;

Definition at line 129 of file profile.cpp.

References m_actionPartServices, m_confirmDelete, m_confirmSync, m_map, m_name, m_pixmap, and m_uid.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kitchensync Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Aug 23 18:20:16 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003