sbLibraryUtils.h File Reference
#include <nsCOMArray.h>
#include <nsCOMPtr.h>
#include <pratom.h>
#include <nsServiceManagerUtils.h>
#include <nsComponentManagerUtils.h>
#include <nsStringAPI.h>
#include <nsIMutableArray.h>
#include <sbMemoryUtils.h>
#include <sbILibrary.h>
#include <sbILibraryManager.h>
Include dependency graph for sbLibraryUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sbLibraryBatchHelper
 
class  sbLibraryUtils
 

Functions

nsresult GetMainLibrary (sbILibrary **aMainLibrary)
 
PRBool sbIsMainLibrary (sbILibrary *aLibrary)
 
nsresult GetMainLibraryId (nsAString &aLibraryId)
 
 SB_AUTO_NULL_CLASS (sbAutoRemoveMediaItem, nsCOMPtr< sbIMediaItem >,{nsCOMPtr< sbILibrary > library;nsresult rv=mValue->GetLibrary(getter_AddRefs(library));if(NS_SUCCEEDED(rv)) library->Remove(mValue);})
 

Function Documentation

NS_IMETHODIMP sbLibraryManager::GetMainLibrary ( sbILibrary **  _retval)
inline

Retrieves the main library

See sbILibraryManager.idl

Definition at line 269 of file sbLibraryUtils.h.

Here is the caller graph for this function:

nsresult GetMainLibraryId ( nsAString &  aLibraryId)
inline

Retrieves the ID of the main library

Definition at line 304 of file sbLibraryUtils.h.

Here is the call graph for this function:

Here is the caller graph for this function:

SB_AUTO_NULL_CLASS ( sbAutoRemoveMediaItem  ,
nsCOMPtr< sbIMediaItem ,
{nsCOMPtr< sbILibrary > library;nsresult rv=mValue->GetLibrary(getter_AddRefs(library));if(NS_SUCCEEDED(rv)) library->Remove(mValue);}   
)
PRBool sbIsMainLibrary ( sbILibrary aLibrary)
inline

Tests whether the library passed is the main library

Definition at line 283 of file sbLibraryUtils.h.

Here is the call graph for this function:

Here is the caller graph for this function: