src/DownloadService.cpp
bool DownloadManager::cbCancelAllDownloads(LSHandle* lshandle, LSMessage *msg,
                            void *user_data) {

    LSError lserror;
    LSErrorInit(&lserror);
    std::string result;

    DownloadManager::instance().cancelAll();

    result  = "{ \"returnValue\":true }";

    const char* r = result.c_str();
    if (!LSMessageReply( lshandle, msg, r, &lserror ))  {
        LSErrorPrint (&lserror, stderr);
        LSErrorFree(&lserror);
    }

    return true;
}
//->End of API documentation comment block
>End of API documentation comment block
> End of API documentation comment block
bool DownloadManager::cbCancelAllDownloads(LSHandle* lshandle, LSMessage *msg,
                            void *user_data) {
    LSError lserror;
    LSErrorInit(&lserror);
    std::string result;
    DownloadManager::instance().cancelAll();
    result  = "{ \"returnValue\":true }";
    const char* r = result.c_str();
    if (!LSMessageReply( lshandle, msg, r, &lserror ))  {
        LSErrorPrint (&lserror, stderr);
        LSErrorFree(&lserror);
    }
    return true;
}
bool DownloadManager :: cbCancelAllDownloads ( LSHandle * lshandle , LSMessage * msg , void * user_data ) { LSError lserror ; LSErrorInit ( & lserror ) ; std :: string result ; DownloadManager :: instance ( ) . cancelAll ( ) ; result = " \" \" " ; const char * r = result . c_str ( ) ; if ( ! LSMessageReply ( lshandle , msg , r , & lserror ) ) { LSErrorPrint ( & lserror , stderr ) ; LSErrorFree ( & lserror ) ; } return true ; }
>End of API documentation comment block
> End of API documentation comment block