1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/System/IO/StreamAsyncResult.h
Tom Lint 3a960b5829 Updated comments
Added some new Type infos
Removed excess whitespace
Added some new files
Implemented missing methods
2013-08-13 20:04:25 +02:00

69 lines
1.4 KiB
C++

/*****************************************************************************
* StreamAsyncResult.h *
* *
* System::IO::StreamAsyncResult class definition file *
* Copyright (c) XFX Team. All Rights Reserved *
*****************************************************************************/
#ifndef _SYSTEM_IO_STREAMASYNCRESULT_
#define _SYSTEM_IO_STREAMASYNCRESULT_
#include <System/Interfaces.h>
#include <System/Object.h>
#include <System/Types.h>
#include <System/Threading/WaitHandle.h>
namespace System
{
namespace IO
{
/**
*
*/
class StreamAsyncResult : public IAsyncResult, public Object
{
private:
Object* _state;
bool completed;
bool done;
//Exception* exc;
int _nbytes;
public:
Object* AsyncState();
Threading::WaitHandle* AsyncWaitHandle();
virtual bool CompletedSynchronously();
bool IsCompleted();
//Exception* getException();
int NBytes();
bool Done;
/**
*
*
* @param state
*
*/
StreamAsyncResult(Object* state);
/**
*
*
* @param obj
*
*/
StreamAsyncResult(const IAsyncResult &obj);
/**
*
*
* @param obj
*
*/
StreamAsyncResult(const StreamAsyncResult &obj);
//void SetComplete(Exception* e);
//void SetComplete(Exception* e, int nbytes);
};
}
}
#endif //_SYSTEM_IO_STREAMASYNCRESULT_