libnetservices.a: final cleanup after progress size change to off_t
Final fallout of the hrev54936 change Change-Id: Id4836359f49dffbef76916db7fb7b51dd1e490d8
This commit is contained in:
parent
2319480945
commit
e95af9e0ef
@ -35,10 +35,19 @@ public:
|
|||||||
virtual void DataReceived(BUrlRequest* caller,
|
virtual void DataReceived(BUrlRequest* caller,
|
||||||
const char* data, off_t position,
|
const char* data, off_t position,
|
||||||
ssize_t size);
|
ssize_t size);
|
||||||
|
|
||||||
|
#ifdef LIBNETAPI_DEPRECATED
|
||||||
virtual void DownloadProgress(BUrlRequest* caller,
|
virtual void DownloadProgress(BUrlRequest* caller,
|
||||||
ssize_t bytesReceived, ssize_t bytesTotal);
|
ssize_t bytesReceived, ssize_t bytesTotal);
|
||||||
virtual void UploadProgress(BUrlRequest* caller,
|
virtual void UploadProgress(BUrlRequest* caller,
|
||||||
ssize_t bytesSent, ssize_t bytesTotal);
|
ssize_t bytesSent, ssize_t bytesTotal);
|
||||||
|
#else
|
||||||
|
virtual void DownloadProgress(BUrlRequest* caller,
|
||||||
|
off_t bytesReceived, off_t bytesTotal);
|
||||||
|
virtual void UploadProgress(BUrlRequest* caller,
|
||||||
|
off_t bytesSent, off_t bytesTotal);
|
||||||
|
#endif //LIBNETAPI_DEPRECATED
|
||||||
|
|
||||||
virtual void RequestCompleted(BUrlRequest* caller,
|
virtual void RequestCompleted(BUrlRequest* caller,
|
||||||
bool success);
|
bool success);
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ BUrlProtocolDispatchingListener::DataReceived(BUrlRequest* caller,
|
|||||||
#ifdef LIBNETAPI_DEPRECATED
|
#ifdef LIBNETAPI_DEPRECATED
|
||||||
void
|
void
|
||||||
BUrlProtocolDispatchingListener::DownloadProgress(BUrlRequest* caller,
|
BUrlProtocolDispatchingListener::DownloadProgress(BUrlRequest* caller,
|
||||||
size_t bytesReceived, size_t bytesTotal)
|
ssize_t bytesReceived, ssize_t bytesTotal)
|
||||||
{
|
{
|
||||||
BMessage message(B_URL_PROTOCOL_NOTIFICATION);
|
BMessage message(B_URL_PROTOCOL_NOTIFICATION);
|
||||||
message.AddInt32("url:bytesReceived", bytesReceived);
|
message.AddInt32("url:bytesReceived", bytesReceived);
|
||||||
@ -119,7 +119,7 @@ BUrlProtocolDispatchingListener::DownloadProgress(BUrlRequest* caller,
|
|||||||
|
|
||||||
void
|
void
|
||||||
BUrlProtocolDispatchingListener::UploadProgress(BUrlRequest* caller,
|
BUrlProtocolDispatchingListener::UploadProgress(BUrlRequest* caller,
|
||||||
size_t bytesSent, size_t bytesTotal)
|
ssize_t bytesSent, ssize_t bytesTotal)
|
||||||
{
|
{
|
||||||
BMessage message(B_URL_PROTOCOL_NOTIFICATION);
|
BMessage message(B_URL_PROTOCOL_NOTIFICATION);
|
||||||
message.AddInt32("url:bytesSent", bytesSent);
|
message.AddInt32("url:bytesSent", bytesSent);
|
||||||
|
@ -57,6 +57,7 @@ BUrlProtocolListener::DataReceived(BUrlRequest*, const char*, off_t, ssize_t)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef LIBNETAPI_DEPRECATED
|
||||||
void
|
void
|
||||||
BUrlProtocolListener::DownloadProgress(BUrlRequest*, ssize_t, ssize_t)
|
BUrlProtocolListener::DownloadProgress(BUrlRequest*, ssize_t, ssize_t)
|
||||||
{
|
{
|
||||||
@ -68,6 +69,20 @@ BUrlProtocolListener::UploadProgress(BUrlRequest*, ssize_t, ssize_t)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
void
|
||||||
|
BUrlProtocolListener::DownloadProgress(BUrlRequest*, off_t, off_t)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
BUrlProtocolListener::UploadProgress(BUrlRequest*, off_t, off_t)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endif // LIBNETAPI_DEPRECATED
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BUrlProtocolListener::RequestCompleted(BUrlRequest*, bool)
|
BUrlProtocolListener::RequestCompleted(BUrlRequest*, bool)
|
||||||
|
@ -88,6 +88,7 @@ BUrlSynchronousRequest::DataReceived(BUrlRequest*, const char*,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef LIBNETAPI_DEPRECATED
|
||||||
void
|
void
|
||||||
BUrlSynchronousRequest::DownloadProgress(BUrlRequest*,
|
BUrlSynchronousRequest::DownloadProgress(BUrlRequest*,
|
||||||
ssize_t bytesReceived, ssize_t bytesTotal)
|
ssize_t bytesReceived, ssize_t bytesTotal)
|
||||||
@ -106,6 +107,28 @@ BUrlSynchronousRequest::UploadProgress(BUrlRequest*, ssize_t bytesSent,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
BUrlSynchronousRequest::DownloadProgress(BUrlRequest*,
|
||||||
|
off_t bytesReceived, off_t bytesTotal)
|
||||||
|
{
|
||||||
|
PRINT(("SynchronousRequest::DownloadProgress(%" B_PRIdOFF ", %" B_PRIdOFF
|
||||||
|
")\n", bytesReceived, bytesTotal));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
BUrlSynchronousRequest::UploadProgress(BUrlRequest*, off_t bytesSent,
|
||||||
|
off_t bytesTotal)
|
||||||
|
{
|
||||||
|
PRINT(("SynchronousRequest::UploadProgress(%" B_PRIdOFF ", %" B_PRIdOFF
|
||||||
|
")\n", bytesSent, bytesTotal));
|
||||||
|
}
|
||||||
|
#endif // LIBNETAPI_DEPRECATED
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BUrlSynchronousRequest::RequestCompleted(BUrlRequest* caller, bool success)
|
BUrlSynchronousRequest::RequestCompleted(BUrlRequest* caller, bool success)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user