void GoogleDriveService::ListChangesFinished(
    google_drive::ListChangesResponse* changes_response) {
  changes_response->deleteLater();

  const QString cursor = changes_response->next_cursor();
  if (is_indexing()) {
    // Only save the cursor after all the songs have been indexed - that way if
    // Clementine is closed it'll resume next time.
    NewClosure(this, SIGNAL(AllIndexingTasksFinished()),
               this, SLOT(SaveCursor(QString)),
               cursor);
  } else {
    SaveCursor(cursor);
  }
}
Exemple #2
0
/**
**	Draw cursor.
*/
global void DrawCursor(CursorType* type,int x,int y,int frame)
{
    OldCursorX=x-=type->HotX;
    OldCursorY=y-=type->HotY;
    OldCursorW=type->RleSprite->Width;
    OldCursorH=type->RleSprite->Height;

    SaveCursor();
    DrawRleSpriteClipped(type->RleSprite,frame,x,y);
}