* fixed some more GetSupportedSuites implementations
* fixed some local variables names * fixed the case of some message attribute names git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17734 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -11,20 +11,24 @@
|
||||
static property_info
|
||||
sPropertyInfo[] = {
|
||||
{ "ChannelCount",
|
||||
{ B_GET_PROPERTY, B_SET_PROPERTY, 0 },
|
||||
{ B_DIRECT_SPECIFIER, 0 }, "", 0 },
|
||||
{ B_GET_PROPERTY, B_SET_PROPERTY, 0 },
|
||||
{ B_DIRECT_SPECIFIER, 0 }, NULL, 0, { B_INT32_TYPE }
|
||||
},
|
||||
|
||||
{ "CurrentChannel",
|
||||
{ B_GET_PROPERTY, B_SET_PROPERTY, 0 },
|
||||
{ B_DIRECT_SPECIFIER, 0 }, "", 0 },
|
||||
{ B_GET_PROPERTY, B_SET_PROPERTY, 0 },
|
||||
{ B_DIRECT_SPECIFIER, 0 }, NULL, 0, { B_INT32_TYPE }
|
||||
},
|
||||
|
||||
{ "MaxLimitLabel",
|
||||
{ B_GET_PROPERTY, B_SET_PROPERTY, 0 },
|
||||
{ B_DIRECT_SPECIFIER, 0 }, "", 0 },
|
||||
{ B_GET_PROPERTY, B_SET_PROPERTY, 0 },
|
||||
{ B_DIRECT_SPECIFIER, 0 }, NULL, 0, { B_STRING_TYPE }
|
||||
},
|
||||
|
||||
{ "MinLimitLabel",
|
||||
{ B_GET_PROPERTY, B_SET_PROPERTY, 0 },
|
||||
{ B_DIRECT_SPECIFIER, 0 }, "", 0 },
|
||||
{ B_GET_PROPERTY, B_SET_PROPERTY, 0 },
|
||||
{ B_DIRECT_SPECIFIER, 0 }, NULL, 0, { B_STRING_TYPE }
|
||||
},
|
||||
|
||||
{ 0 }
|
||||
};
|
||||
@@ -201,12 +205,15 @@ BChannelControl::GetSupportedSuites(BMessage *data)
|
||||
if (data == NULL)
|
||||
return B_BAD_VALUE;
|
||||
|
||||
data->AddString("suites", "suite/vnd.Be-channel-control");
|
||||
status_t err = data->AddString("suites", "suite/vnd.Be-channel-control");
|
||||
|
||||
BPropertyInfo propertyInfo(sPropertyInfo);
|
||||
data->AddFlat("messages", &propertyInfo);
|
||||
if (err == B_OK)
|
||||
err = data->AddFlat("messages", &propertyInfo);
|
||||
|
||||
return BControl::GetSupportedSuites(data);
|
||||
if (err == B_OK)
|
||||
return BControl::GetSupportedSuites(data);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user