Merge pull request #181 from marco-c/setHidden

Add stub Connection::setHiddenImpl native
This commit is contained in:
Andreas Gal 2014-09-03 20:46:41 -07:00
Родитель be5798878d a0e7db1836
Коммит e48dae88ce
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -290,9 +290,9 @@ Native["com/sun/midp/rms/RecordStoreRegistry.stopAllRecordStoreListeners.(I)V"]
} }
Native["com/ibm/oti/connection/file/Connection.isValidFilenameImpl.([B)Z"] = function(ctx, stack) { Native["com/ibm/oti/connection/file/Connection.isValidFilenameImpl.([B)Z"] = function(ctx, stack) {
var byteArray = stack.pop(), _this = stack.pop(); var path = util.decodeUtf8(stack.pop()), _this = stack.pop();
stack.push(1); stack.push(1);
console.warn("Connection.isValidFilenameImpl.([B)Z not implemented (" + util.decodeUtf8(byteArray) + ")"); console.warn("Connection.isValidFilenameImpl.([B)Z not implemented (" + path + ")");
} }
Native["com/ibm/oti/connection/file/Connection.availableSizeImpl.([B)J"] = function(ctx, stack) { Native["com/ibm/oti/connection/file/Connection.availableSizeImpl.([B)J"] = function(ctx, stack) {
@ -301,6 +301,11 @@ Native["com/ibm/oti/connection/file/Connection.availableSizeImpl.([B)J"] = funct
stack.push2(Long.fromNumber(1024 * 1024 * 1024)); stack.push2(Long.fromNumber(1024 * 1024 * 1024));
} }
Native["com/ibm/oti/connection/file/Connection.setHiddenImpl.([BZ)V"] = function(ctx, stack) {
var value = stack.pop(), path = util.decodeUtf8(stack.pop()), _this = stack.pop();
console.warn("Connection.setHiddenImpl.([BZ)V not implemented (" + path + ")");
}
Native["com/ibm/oti/connection/file/Connection.existsImpl.([B)Z"] = function(ctx, stack) { Native["com/ibm/oti/connection/file/Connection.existsImpl.([B)Z"] = function(ctx, stack) {
var path = util.decodeUtf8(stack.pop()), _this = stack.pop(); var path = util.decodeUtf8(stack.pop()), _this = stack.pop();