cds_objects.h File Reference

Definition for the CdsObject, CdsItem, CdsActiveItem and CdsContainer classes. More...

#include "common.h"
#include "dictionary.h"
#include "cds_resource.h"

Go to the source code of this file.

Data Structures

class  CdsObject
 Generic object in the Content Directory. More...
class  CdsItem
 An Item in the content directory. More...
class  CdsActiveItem
 An Active Item in the content directory. More...
class  CdsItemExternalURL
 An item that is accessible via a URL. More...
class  CdsItemInternalURL
 An item that is pointing to a file located in the "servedir" directory. More...
class  CdsContainer
 A container in the content directory. More...

Defines

#define OBJECT_TYPE_CONTAINER   0x00000001
#define OBJECT_TYPE_ITEM   0x00000002
#define OBJECT_TYPE_ACTIVE_ITEM   0x00000004
#define OBJECT_TYPE_ITEM_EXTERNAL_URL   0x00000008
#define OBJECT_TYPE_ITEM_INTERNAL_URL   0x00000010
#define STRING_OBJECT_TYPE_CONTAINER   "container"
#define STRING_OBJECT_TYPE_ITEM   "item"
#define STRING_OBJECT_TYPE_ACTIVE_ITEM   "active_item"
#define STRING_OBJECT_TYPE_EXTERNAL_URL   "external_url"
#define STRING_OBJECT_TYPE_INTERNAL_URL   "internal_url"
#define IS_CDS_CONTAINER(type)   (type & OBJECT_TYPE_CONTAINER)
#define IS_CDS_ITEM(type)   (type & OBJECT_TYPE_ITEM)
#define IS_CDS_ACTIVE_ITEM(type)   (type & OBJECT_TYPE_ACTIVE_ITEM)
#define IS_CDS_ITEM_EXTERNAL_URL(type)   (type & OBJECT_TYPE_ITEM_EXTERNAL_URL)
#define IS_CDS_ITEM_INTERNAL_URL(type)   (type & OBJECT_TYPE_ITEM_INTERNAL_URL)
#define IS_CDS_PURE_ITEM(type)   (type == OBJECT_TYPE_ITEM)
#define OBJECT_FLAG_RESTRICTED   0x00000001
#define OBJECT_FLAG_SEARCHABLE   0x00000002
#define OBJECT_FLAG_USE_RESOURCE_REF   0x00000004
#define OBJECT_FLAG_PERSISTENT_CONTAINER   0x00000008
#define OBJECT_FLAG_PLAYLIST_REF   0x00000010
#define OBJECT_FLAG_PROXY_URL   0x00000020
#define OBJECT_FLAG_ONLINE_SERVICE   0x00000040
#define OBJECT_FLAG_OGG_THEORA   0x00000080
#define OBJECT_FLAG_DVD_IMAGE   0x00000100
#define OBJECT_FLAG_PLAYED   0x00000200
#define OBJECT_AUTOSCAN_NONE   0
#define OBJECT_AUTOSCAN_UI   1
#define OBJECT_AUTOSCAN_CFG   2

Functions

int CdsObjectTitleComparator (void *arg1, void *arg2)

Detailed Description

Definition for the CdsObject, CdsItem, CdsActiveItem and CdsContainer classes.

Definition in file cds_objects.h.


Define Documentation

#define IS_CDS_ACTIVE_ITEM ( type   )     (type & OBJECT_TYPE_ACTIVE_ITEM)
#define IS_CDS_CONTAINER ( type   )     (type & OBJECT_TYPE_CONTAINER)
#define IS_CDS_ITEM ( type   )     (type & OBJECT_TYPE_ITEM)
#define IS_CDS_ITEM_EXTERNAL_URL ( type   )     (type & OBJECT_TYPE_ITEM_EXTERNAL_URL)
#define IS_CDS_ITEM_INTERNAL_URL ( type   )     (type & OBJECT_TYPE_ITEM_INTERNAL_URL)
#define IS_CDS_PURE_ITEM ( type   )     (type == OBJECT_TYPE_ITEM)
#define OBJECT_AUTOSCAN_CFG   2

Definition at line 72 of file cds_objects.h.

Referenced by SQLStorage::createObjectFromRow().

#define OBJECT_AUTOSCAN_NONE   0

Definition at line 70 of file cds_objects.h.

Referenced by CdsContainer::CdsContainer(), and SQLStorage::createObjectFromRow().

#define OBJECT_AUTOSCAN_UI   1

Definition at line 71 of file cds_objects.h.

Referenced by SQLStorage::createObjectFromRow().

#define OBJECT_FLAG_DVD_IMAGE   0x00000100
#define OBJECT_FLAG_OGG_THEORA   0x00000080
#define OBJECT_FLAG_ONLINE_SERVICE   0x00000040
#define OBJECT_FLAG_PERSISTENT_CONTAINER   0x00000008
#define OBJECT_FLAG_PLAYED   0x00000200

Definition at line 68 of file cds_objects.h.

Referenced by PlayHook::trigger(), and ContentDirectoryService::upnp_action_Browse().

#define OBJECT_FLAG_PLAYLIST_REF   0x00000010

Definition at line 63 of file cds_objects.h.

Referenced by SQLStorage::_addUpdateObject().

#define OBJECT_FLAG_PROXY_URL   0x00000020
#define OBJECT_FLAG_RESTRICTED   0x00000001
#define OBJECT_FLAG_SEARCHABLE   0x00000002

Definition at line 60 of file cds_objects.h.

Referenced by CdsContainer::isSearchable(), and CdsContainer::setSearchable().

#define OBJECT_FLAG_USE_RESOURCE_REF   0x00000004
#define OBJECT_TYPE_ACTIVE_ITEM   0x00000004

Definition at line 42 of file cds_objects.h.

Referenced by CdsActiveItem::CdsActiveItem(), and CdsObject::remapObjectType().

#define OBJECT_TYPE_CONTAINER   0x00000001
#define OBJECT_TYPE_ITEM   0x00000002
#define OBJECT_TYPE_ITEM_EXTERNAL_URL   0x00000008
#define OBJECT_TYPE_ITEM_INTERNAL_URL   0x00000010
#define STRING_OBJECT_TYPE_ACTIVE_ITEM   "active_item"
#define STRING_OBJECT_TYPE_CONTAINER   "container"
#define STRING_OBJECT_TYPE_EXTERNAL_URL   "external_url"
#define STRING_OBJECT_TYPE_INTERNAL_URL   "internal_url"
#define STRING_OBJECT_TYPE_ITEM   "item"

Function Documentation

int CdsObjectTitleComparator ( void *  arg1,
void *  arg2 
)

Todo:
get rid of getTitle() to avod unnecessary reference counting ops
Todo:
get rid of getTitle() to avod unnecessary reference counting ops

Definition at line 322 of file cds_objects.cc.


Generated on Fri Mar 26 20:16:54 2010 for MediaTomb by  doxygen 1.6.1