#include <resourcefactory.h>
Public Methods | |
| ResourceConfigWidget * | configWidget (const QString &type, QWidget *parent=0) |
| Resource * | resource (const QString &type, AddressBook *ab, const KConfig *config) |
| QStringList | resources () |
| ResourceInfo * | info (const QString &type) |
Static Public Methods | |
| ResourceFactory * | self () |
Example:
KABC::ResourceFactory *factory = KABC::ResourceFactory::self();
QStringList list = factory->resources();
QStringList::Iterator it;
for ( it = list.begin(); it != list.end(); ++it ) {
Resource *resource = factory->resource( (*it),
KABC::StdAddressBook::self(), 0 );
// do something with resource
}
Definition at line 58 of file resourcefactory.h.
|
||||||||||||
|
Returns the config widget for the given resource type, or a null pointer if resource type doesn't exist.
|
|
|
Returns the info structure for a special type. |
|
||||||||||||||||
|
Returns a pointer to a resource object or a null pointer if resource type doesn't exist.
|
|
|
Returns a list of all available resource types. |
|
|
Returns the global resource factory. |
1.2.18