コード例 #1
0
sbIPDDevice::sbIPDDevice(const nsID&     aControllerID,
                         nsIPropertyBag* aProperties) :

  // Preference services.
  mPrefLock(nsnull),
  mPrefConnected(PR_FALSE),
  mIPodPrefs(NULL),
  mIPodPrefsDirty(PR_FALSE),
  mSyncPlaylistListDirty(PR_FALSE),

  // Internal services.
  mConnectLock(nsnull),
  mControllerID(aControllerID),
  mCreationProperties(aProperties),
  mITDB(NULL),
  mITDBDirty(PR_FALSE),
  mITDBDevice(NULL),
  mConnected(PR_FALSE),
  mIPDStatus(nsnull)
{
  SB_PRLOG_SETUP(sbIPDDevice);

  // Log progress.
  LOG("Enter: sbIPDDevice::sbIPDDevice\n");

  // Validate arguments.
  NS_ASSERTION(aProperties, "aProperties is null");
}
sbLocalDatabaseLibraryLoader::sbLocalDatabaseLibraryLoader()
: m_DetectedCorruptLibrary(PR_FALSE)
, m_DeleteLibrariesAtShutdown(PR_FALSE)
{
  SB_PRLOG_SETUP(sbLocalDatabaseLibraryLoader);

  TRACE("sbLocalDatabaseLibraryLoader[0x%x] - Created", this);
}
コード例 #3
0
sbMediaExportPrefController::sbMediaExportPrefController()
  : mShouldExportTracks(PR_FALSE)
  , mShouldExportPlaylists(PR_FALSE)
  , mShouldExportSmartPlaylists(PR_FALSE)
  , mShouldStartExportAgent(PR_FALSE)
  , mListener(nsnull)
{
  SB_PRLOG_SETUP(sbMediaExportPrefController);
}
コード例 #4
0
sbWin32FileSystemWatcher::sbWin32FileSystemWatcher() :
  mRootDirHandle(INVALID_HANDLE_VALUE),
  mWatcherThread(INVALID_HANDLE_VALUE),
  mBuffer(nsnull),
  mShouldRunThread(PR_FALSE),
  mIsThreadRunning(PR_FALSE),
  mShuttingDown(PR_FALSE)
{
  SB_PRLOG_SETUP(sbWin32FSWatcher);

  mEventPathsSetLock =
    nsAutoLock::NewLock("sbWin32FileSystemWatcher::mEventPathsSetLock");
  NS_ASSERTION(mEventPathsSetLock, "Failed to create lock");
}
コード例 #5
0
/**
 * Initialize the various data members. We initialize mCurrentBatchId to 1
 * as requests not belonging to a batch have a batch ID of 0.
 */
sbRequestThreadQueue::sbRequestThreadQueue() :
  mLock(nsnull),
  mBatchDepth(0),
  mStopWaitMonitor(nsnull),
  mAbortRequests(false),
  mIsHandlingRequests(false),
  mThreadStarted(false),
  mStopProcessing(false),
  mCurrentBatchId(1)
{
  SB_PRLOG_SETUP(sbRequestThreadQueue);

  mLock = nsAutoLock::NewLock("sbRequestThreadQueue::mLock");
  // Create the request wait monitor.
  mStopWaitMonitor =
    nsAutoMonitor::NewMonitor("sbRequestThreadQueue::mStopWaitMonitor");
}