switch (arg->getState()) {
case Api::Filesystem::StorageProperties::STATE_MOUNTED :
+ case Api::Filesystem::StorageProperties::STATE_MOUNTED_READONLY :
tmpStorage.setState(JSStorage::STATE_MOUNTED);
break;
case Api::Filesystem::StorageProperties::STATE_REMOVED:
switch (arg[i]->getState()) {
case Api::Filesystem::StorageProperties::STATE_MOUNTED :
+ case Api::Filesystem::StorageProperties::STATE_MOUNTED_READONLY :
tmpStorage.setState(JSStorage::STATE_MOUNTED);
break;
case Api::Filesystem::StorageProperties::STATE_REMOVED:
}
ThrowMsg(Commons::InvalidArgumentException, "Invalid encoding");
}
-JSValueRef Converter::toStorageType(const short type)
+JSValueRef Converter::toStorageState(const short type)
{
switch (type)
{
- case Api::Filesystem::StorageProperties::STATE_MOUNTED:
+ case JSStorage::STATE_MOUNTED:
return toJSValueRef(STORAGE_TYPE_STATE_MOUNTED);
- case Api::Filesystem::StorageProperties::STATE_REMOVED:
+ case JSStorage::STATE_REMOVED:
return toJSValueRef(STORAGE_TYPE_STATE_REMOVED);
- case Api::Filesystem::StorageProperties::STATE_UNMOUNTABLE:
+ case JSStorage::STATE_UNMOUNTABLE:
return toJSValueRef(STORAGE_TYPE_STATE_UNMOUNTABLE);
}
ThrowMsg(Commons::InvalidArgumentException, "Invalid storage type");
}
-JSValueRef Converter::toStorageState(const short state)
+JSValueRef Converter::toStorageType(const short state)
{
switch (state)
{