equal
deleted
inserted
replaced
308 * @param aNodePurpose gives the information if the normal or some specific kind |
308 * @param aNodePurpose gives the information if the normal or some specific kind |
309 * of node should be created. |
309 * of node should be created. |
310 * @param aNodeIdentfier The identifier that identifies the parent of this node. |
310 * @param aNodeIdentfier The identifier that identifies the parent of this node. |
311 * @return CNcdNode& Reference to the node that was found. |
311 * @return CNcdNode& Reference to the node that was found. |
312 */ |
312 */ |
313 CNcdNodeItem& CNcdNodeManager::CreateNodeItemL( CNcdNodeFactory::TNcdNodePurpose aNodePurpose, |
313 CNcdNodeItem& CreateNodeItemL( CNcdNodeFactory::TNcdNodePurpose aNodePurpose, |
314 const CNcdNodeIdentifier& aNodeIdentifier ); |
314 const CNcdNodeIdentifier& aNodeIdentifier ); |
315 |
315 |
316 |
316 |
317 /** |
317 /** |
318 * Creates an item node accroding to the given type information. |
318 * Creates an item node accroding to the given type information. |
319 * Adds the created node into the cache. If node already exists |
319 * Adds the created node into the cache. If node already exists |
323 * of node should be created. |
323 * of node should be created. |
324 * @param aParentNodeIdentfier The identifier that identifies the parent of this node. |
324 * @param aParentNodeIdentfier The identifier that identifies the parent of this node. |
325 * @param aMetaDataIdentifier The identifier of metadata of this node. |
325 * @param aMetaDataIdentifier The identifier of metadata of this node. |
326 * @return CNcdNode& Reference to the node that was found. |
326 * @return CNcdNode& Reference to the node that was found. |
327 */ |
327 */ |
328 CNcdNodeItem& CNcdNodeManager::CreateNodeItemL( CNcdNodeFactory::TNcdNodePurpose aNodePurpose, |
328 CNcdNodeItem& CreateNodeItemL( CNcdNodeFactory::TNcdNodePurpose aNodePurpose, |
329 const CNcdNodeIdentifier& aParentNodeIdentifier, |
329 const CNcdNodeIdentifier& aParentNodeIdentifier, |
330 const CNcdNodeIdentifier& aMetaDataIdentifier ); |
330 const CNcdNodeIdentifier& aMetaDataIdentifier ); |
331 |
331 |
332 |
332 |
333 /** |
333 /** |
334 * Creates a folder node accroding to the given type information. |
334 * Creates a folder node accroding to the given type information. |
335 * Adds the created node into the cache. If node already exists |
335 * Adds the created node into the cache. If node already exists |
344 * @param aNodeIdentfier The identifier that identifies the parent of this node. |
344 * @param aNodeIdentfier The identifier that identifies the parent of this node. |
345 * @param aFolderType May be used to inform what kind of special folder is used. For example |
345 * @param aFolderType May be used to inform what kind of special folder is used. For example |
346 * if root folder should be created. |
346 * if root folder should be created. |
347 * @return CNcdNode& Reference to the node that was found. |
347 * @return CNcdNode& Reference to the node that was found. |
348 */ |
348 */ |
349 CNcdNodeFolder& CNcdNodeManager::CreateNodeFolderL( CNcdNodeFactory::TNcdNodePurpose aNodePurpose, |
349 CNcdNodeFolder& CreateNodeFolderL( CNcdNodeFactory::TNcdNodePurpose aNodePurpose, |
350 const CNcdNodeIdentifier& aNodeIdentifier, |
350 const CNcdNodeIdentifier& aNodeIdentifier, |
351 CNcdNodeFactory::TNcdNodeType aFolderType |
351 CNcdNodeFactory::TNcdNodeType aFolderType |
352 = CNcdNodeFactory::ENcdNodeFolder ); |
352 = CNcdNodeFactory::ENcdNodeFolder ); |
353 /** |
353 /** |
354 * Creates a folder node accroding to the given type information. |
354 * Creates a folder node accroding to the given type information. |
355 * Adds the created node into the cache. If node already exists |
355 * Adds the created node into the cache. If node already exists |
356 * in the cache or in the database, then the old node is used. |
356 * in the cache or in the database, then the old node is used. |
357 * |
357 * |
361 * @param aMetaDataIdentifier The identifier of metadata of this node. |
361 * @param aMetaDataIdentifier The identifier of metadata of this node. |
362 * @param aFolderType May be used to inform what kind of special folder is used. For example |
362 * @param aFolderType May be used to inform what kind of special folder is used. For example |
363 * if root folder should be created. |
363 * if root folder should be created. |
364 * @return CNcdNode& Reference to the node that was found. |
364 * @return CNcdNode& Reference to the node that was found. |
365 */ |
365 */ |
366 CNcdNodeFolder& CNcdNodeManager::CreateNodeFolderL( CNcdNodeFactory::TNcdNodePurpose aNodePurpose, |
366 CNcdNodeFolder& CreateNodeFolderL( CNcdNodeFactory::TNcdNodePurpose aNodePurpose, |
367 const CNcdNodeIdentifier& aParentNodeIdentifier, |
367 const CNcdNodeIdentifier& aParentNodeIdentifier, |
368 const CNcdNodeIdentifier& aMetaDataIdentifier, |
368 const CNcdNodeIdentifier& aMetaDataIdentifier, |
369 CNcdNodeFactory::TNcdNodeType aFolderType |
369 CNcdNodeFactory::TNcdNodeType aFolderType |
370 = CNcdNodeFactory::ENcdNodeFolder ); |
370 = CNcdNodeFactory::ENcdNodeFolder ); |
371 |
371 |
372 /** |
372 /** |
373 * Uses FolderL to search an existing folder. If the folder is not |
373 * Uses FolderL to search an existing folder. If the folder is not |
374 * found then new transparent folder will be created and retured. |
374 * found then new transparent folder will be created and retured. |
375 * |
375 * |