kplato

Scripting::Project Class Reference

The Project class represents a KPlato project. More...

#include <Project.h>

Inheritance diagram for Scripting::Project:

List of all members.

Public Slots

QObjectaccountAt (int index)
int accountCount () const
QObjectcalendarAt (int index)
int calendarCount () const
void clearAllExternalAppointments ()
void clearExternalAppointments (const QString &id)
QObjectcreateCalendar (QObject *calendar, QObject *parent=0)
QObjectcreateResource (QObject *group, QObject *resource)
QObjectcreateResourceGroup (QObject *group)
QObjectfindAccount (const QString &id)
QObjectfindCalendar (const QString &id)
QObjectfindResource (const QString &id)
QObjectfindResourceGroup (const QString &id)
QObjectnodeAt (int index)
int nodeCount () const
QVariant nodeHeaderData (const QString &property)
QStringList nodePropertyList ()
QObjectresourceGroupAt (int index)
int resourceGroupCount () const
QVariant resourceHeaderData (const QString &property)
QObjectscheduleAt (int index)
int scheduleCount () const

Public Member Functions

 Project (Module *module, KPlato::Project *project)
virtual ~Project ()
QObjectaccount (KPlato::Account *acc)
QVariant accountData (const KPlato::Account *account, const QString &property, const QString &role, long=-1)
QVariant accountHeaderData (const QString &property)
QObjectcalendar (KPlato::Calendar *cal)
KPlato::ProjectkplatoProject () const
QObjectnode (KPlato::Node *node)
QVariant nodeData (const KPlato::Node *node, const QString &property, const QString &role, long schedule)
QObjectresource (KPlato::Resource *resource)
QVariant resourceData (const KPlato::Resource *resource, const QString &property, const QString &role, long schedule)
QObjectresourceGroup (KPlato::ResourceGroup *group)
QVariant resourceGroupData (const KPlato::ResourceGroup *group, const QString &property, const QString &role, long schedule=-1)
QObjectschedule (KPlato::ScheduleManager *sch)

Protected Member Functions

int accountColumnNumber (const QString &property) const
int nodeColumnNumber (const QString &property) const
const KPlato::Projectproject () const
KPlato::Projectproject ()
int resourceColumnNumber (const QString &property) const

Detailed Description

The Project class represents a KPlato project.

Definition at line 57 of file Project.h.


Constructor & Destructor Documentation

Scripting::Project::Project ( Scripting::Module module,
KPlato::Project project 
)

Definition at line 37 of file Project.cpp.

Scripting::Project::~Project (  )  [virtual]

Definition at line 45 of file Project.cpp.


Member Function Documentation

QObject * Scripting::Project::account ( KPlato::Account acc  ) 

Return the Scripting::Account that interfaces the KPlato::Account acc.

Definition at line 330 of file Project.cpp.

QObject * Scripting::Project::accountAt ( int  index  )  [slot]

Return the account at index.

Definition at line 318 of file Project.cpp.

int Scripting::Project::accountColumnNumber ( const QString property  )  const [protected]

Definition at line 347 of file Project.cpp.

int Scripting::Project::accountCount (  )  const [slot]

Number of accounts.

Definition at line 313 of file Project.cpp.

QVariant Scripting::Project::accountData ( const KPlato::Account account,
const QString property,
const QString role,
long  = -1 
)

Return the data of account.

Definition at line 353 of file Project.cpp.

QVariant Scripting::Project::accountHeaderData ( const QString property  ) 

Return the header data of accounts.

Definition at line 341 of file Project.cpp.

QObject * Scripting::Project::calendar ( KPlato::Calendar cal  ) 

Return the Scripting::Calendar that interfaces the KPlato::Calendar cal.

Definition at line 301 of file Project.cpp.

QObject * Scripting::Project::calendarAt ( int  index  )  [slot]

Return the calendar at index.

Definition at line 258 of file Project.cpp.

int Scripting::Project::calendarCount (  )  const [slot]

Number of calendars.

Definition at line 253 of file Project.cpp.

void Scripting::Project::clearAllExternalAppointments (  )  [slot]

Clear all resources external appointments to any project.

Definition at line 246 of file Project.cpp.

void Scripting::Project::clearExternalAppointments ( const QString id  )  [slot]

Clear all resources external appointments to project with id.

Definition at line 239 of file Project.cpp.

QObject * Scripting::Project::createCalendar ( QObject calendar,
QObject parent = 0 
) [slot]

Create a copy of calendar and add to parent.

Definition at line 270 of file Project.cpp.

QObject * Scripting::Project::createResource ( QObject group,
QObject resource 
) [slot]

Create a copy of resource and add to group.

Definition at line 180 of file Project.cpp.

QObject * Scripting::Project::createResourceGroup ( QObject group  )  [slot]

Create a copy of resource group group and insert it into the project.

Definition at line 141 of file Project.cpp.

QObject * Scripting::Project::findAccount ( const QString id  )  [slot]

Find account with identity id.

Definition at line 323 of file Project.cpp.

QObject * Scripting::Project::findCalendar ( const QString id  )  [slot]

Find calendar with identity id.

Definition at line 263 of file Project.cpp.

QObject * Scripting::Project::findResource ( const QString id  )  [slot]

Find resource with identity id.

Definition at line 233 of file Project.cpp.

QObject * Scripting::Project::findResourceGroup ( const QString id  )  [slot]

Find resource group with identity id.

Definition at line 135 of file Project.cpp.

KPlato::Project* Scripting::Project::kplatoProject (  )  const [inline]

Definition at line 64 of file Project.h.

QObject * Scripting::Project::node ( KPlato::Node node  ) 

Return the Scripting::Node that interfaces the KPlato::Node node (create if necessary).

Definition at line 101 of file Project.cpp.

QObject * Scripting::Project::nodeAt ( int  index  )  [slot]

Return the node at index.

Definition at line 114 of file Project.cpp.

int Scripting::Project::nodeColumnNumber ( const QString property  )  const [protected]

Definition at line 91 of file Project.cpp.

int Scripting::Project::nodeCount (  )  const [slot]

Number of nodes in the project (excluding the project itself).

Definition at line 109 of file Project.cpp.

QVariant Scripting::Project::nodeData ( const KPlato::Node node,
const QString property,
const QString role,
long  schedule 
)

Return the data of node.

Definition at line 119 of file Project.cpp.

QVariant Scripting::Project::nodeHeaderData ( const QString property  )  [slot]

Returns node header data for property.

Definition at line 85 of file Project.cpp.

QStringList Scripting::Project::nodePropertyList (  )  [slot]

Returns the names of all node properties.

Definition at line 75 of file Project.cpp.

const KPlato::Project* Scripting::Project::project (  )  const [inline, protected]

Definition at line 151 of file Project.h.

KPlato::Project* Scripting::Project::project (  )  [inline, protected]

Definition at line 150 of file Project.h.

QObject * Scripting::Project::resource ( KPlato::Resource resource  ) 

Return Resource that interfaces the resource (create if necessary).

Definition at line 213 of file Project.cpp.

int Scripting::Project::resourceColumnNumber ( const QString property  )  const [protected]

Definition at line 96 of file Project.cpp.

QVariant Scripting::Project::resourceData ( const KPlato::Resource resource,
const QString property,
const QString role,
long  schedule 
)

Return the data of resource.

Definition at line 221 of file Project.cpp.

QObject * Scripting::Project::resourceGroup ( KPlato::ResourceGroup group  ) 

Return ResourceGroup that interfaces the group (create if necessary).

Definition at line 166 of file Project.cpp.

QObject * Scripting::Project::resourceGroupAt ( int  index  )  [slot]

Return the resource group at index.

Definition at line 130 of file Project.cpp.

int Scripting::Project::resourceGroupCount (  )  const [slot]

Number of resource groups.

Definition at line 125 of file Project.cpp.

QVariant Scripting::Project::resourceGroupData ( const KPlato::ResourceGroup group,
const QString property,
const QString role,
long  schedule = -1 
)

Return the data of resource group group.

Definition at line 174 of file Project.cpp.

QVariant Scripting::Project::resourceHeaderData ( const QString property  )  [slot]

Returns resource header data for property.

Definition at line 227 of file Project.cpp.

QObject * Scripting::Project::schedule ( KPlato::ScheduleManager sch  ) 

Return the Scripting::Schedule that interfaces the KPlato::ScheuleManager sch.

Definition at line 66 of file Project.cpp.

QObject * Scripting::Project::scheduleAt ( int  index  )  [slot]

Return schedule manager at index.

Definition at line 61 of file Project.cpp.

int Scripting::Project::scheduleCount (  )  const [slot]

Return number of schedule managers.

Definition at line 56 of file Project.cpp.


The documentation for this class was generated from the following files: