import { axCoerceString } from '../../avm2/run'; import { ASObject } from '../../avm2/nat'; /** * Copyright 2014 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Class: GroupSpecifier export class GroupSpecifier extends ASObject { // Called whenever the class is initialized. static classInitializer: any = null; // List of static symbols to link. static classSymbols: string [] = null; // ["encodePostingAuthorization", "encodePublishAuthorization", "encodeIPMulticastAddressSpec", "encodeBootstrapPeerIDSpec"]; // List of instance symbols to link. static instanceSymbols: string [] = null; // ["makeUnique", "routingEnabled", "routingEnabled", "multicastEnabled", "multicastEnabled", "objectReplicationEnabled", "objectReplicationEnabled", "postingEnabled", "postingEnabled", "peerToPeerDisabled", "peerToPeerDisabled", "ipMulticastMemberUpdatesEnabled", "ipMulticastMemberUpdatesEnabled", "setPublishPassword", "setPostingPassword", "serverChannelEnabled", "serverChannelEnabled", "addBootstrapPeer", "addIPMulticastAddress", "toString", "groupspecWithoutAuthorizations", "groupspecWithAuthorizations", "authorizations"]; constructor (name: string) { super(); name = axCoerceString(name); } // JS -> AS Bindings static encodePostingAuthorization: (password: string) => string; static encodePublishAuthorization: (password: string) => string; static encodeIPMulticastAddressSpec: (address: string, port?: any, source?: string) => string; static encodeBootstrapPeerIDSpec: (peerID: string) => string; makeUnique: () => void; routingEnabled: boolean; multicastEnabled: boolean; objectReplicationEnabled: boolean; postingEnabled: boolean; peerToPeerDisabled: boolean; ipMulticastMemberUpdatesEnabled: boolean; setPublishPassword: (password?: string, salt?: string) => void; setPostingPassword: (password?: string, salt?: string) => void; serverChannelEnabled: boolean; addBootstrapPeer: (peerID: string) => void; addIPMulticastAddress: (address: string, port?: any, source?: string) => void; groupspecWithoutAuthorizations: () => string; groupspecWithAuthorizations: () => string; authorizations: () => string; // AS -> JS Bindings // _routingEnabled: boolean; // _multicastEnabled: boolean; // _objectReplicationEnabled: boolean; // _postingEnabled: boolean; // _peerToPeerDisabled: boolean; // _ipMulticastMemberUpdatesEnabled: boolean; // _serverChannelEnabled: boolean; }