29 #include <nsComponentManagerUtils.h>
30 #include <nsServiceManagerUtils.h>
39 static PRLogModuleInfo* gDeviceCompatibilityLog = nsnull;
40 #define TRACE(args) PR_LOG(gDeviceCompatibilityLog, PR_LOG_DEBUG, args)
41 #define LOG(args) PR_LOG(gDeviceCompatibilityLog, PR_LOG_WARN, args)
53 if (!gDeviceCompatibilityLog) {
54 gDeviceCompatibilityLog = PR_NewLogModule(
"sbDeviceCompatibility");
57 TRACE((
"DeviceCompatibility[0x%.8x] - Constructed",
this));
62 TRACE((
"DeviceCompatibility[0x%.8x] - Destructed",
this));
67 PRUint32 aUserPreference)
69 NS_ENSURE_FALSE(mInitialized, NS_ERROR_ALREADY_INITIALIZED);
71 mInitialized = PR_TRUE;
72 mCompatibility = aCompatibility;
73 mUserPreference = aUserPreference;
80 sbDeviceCompatibility::GetCompatibility(PRUint32 *aCompatibility)
82 NS_ENSURE_ARG_POINTER(aCompatibility);
83 *aCompatibility = mCompatibility;
89 sbDeviceCompatibility::GetUserPreference(PRUint32 *aUserPreference)
91 NS_ENSURE_ARG_POINTER(aUserPreference);
92 *aUserPreference = mUserPreference;
virtual ~sbDeviceCompatibility()
NS_DECL_ISUPPORTS NS_DECL_SBIDEVICECOMPATIBILITY sbDeviceCompatibility()
NS_IMPL_THREADSAFE_ISUPPORTS1(sbDeviceCapsCompatibility, sbIDeviceCapsCompatibility) sbDeviceCapsCompatibility
nsresult Init(PRUint32 aCompatibility, PRUint32 aUserPreference)
[UNIMPLEMENTED UNTIL AFTER 0.3]