Main Page Modules Class Hierarchy Data Structures File List Data Fields Globals Related Pages

# oscl_aostatus.h

Go to the documentation of this file.

    00001
    00010 #ifndef OSCL_AOSTATUS_H_INCLUDED
    00011 #define OSCL_AOSTATUS_H_INCLUDED
    00012
    00013 #ifndef OSCLCONFIG_PROC_H_INCLUDED
    00014 #include "osclconfig_proc.h"
    00015 #endif
    00016
    00017
    00018 #ifndef OSCL_BASE_H_INCLUDED
    00019 #include "oscl_base.h"
    00020 #endif
    00021
    00022 //Request status values.  These are negative so that
    00023 //they won't conflict with system error codes.
    00024 const int32 OSCL_REQUEST_ERR_NONE = 0;
    00025 const int32 OSCL_REQUEST_PENDING = (-0x7fffffff);
    00026 const int32 OSCL_REQUEST_ERR_CANCEL = (-1);
    00027 const int32 OSCL_REQUEST_ERR_GENERAL = (-2);
    00028
    00029
    00030 //Request status type
    00031 class OsclAOStatus
    00032 {
    00033     public:
    00034         OSCL_INLINE OsclAOStatus();
    00035         OSCL_INLINE OsclAOStatus(int32 aStatus);
    00036         OSCL_INLINE int32 operator=(int32 aStatus);
    00037         OSCL_INLINE int32 operator==(int32 aStatus) const;
    00038         OSCL_INLINE int32 operator!=(int32 aStatus) const;
    00039         OSCL_INLINE int32 operator>=(int32 aStatus) const;
    00040         OSCL_INLINE int32 operator<=(int32 aStatus) const;
    00041         OSCL_INLINE int32 operator>(int32 aStatus) const;
    00042         OSCL_INLINE int32 operator<(int32 aStatus) const;
    00043         OSCL_INLINE int32 Value() const;
    00044     private:
    00045         int32 iStatus;
    00046 };
    00047
    00048
    00049 #if !(OSCL_DISABLE_INLINES)
    00050 #include "oscl_aostatus.inl"
    00051 #endif
    00052
    00053
    00054 #endif
    00055