// Initialize OsStatus SipRedirectorMPT::initialize(OsConfigDb& configDb, int redirectorNo, const UtlString& localDomainHost) { mDomainName = localDomainHost; OsSysLog::add(FAC_SIP, PRI_DEBUG, "%s::SipRedirectorMPT domainName = '%s'", mLogName.data(), mDomainName.data()); OsSysLog::add(FAC_SIP, PRI_DEBUG, "%s::SipRedirectorMPT Loading mappings from '%s'", mLogName.data(), mMappingFileName.data()); loadMappings(&mMappingFileName, &mMapUserToContacts, &mMapContactsToUser); // Set up the static pointer to the unique instance. MPTredirector = this; // Set up the HTTP server on socket 65008. mpSocket = new OsServerSocket(50, 65008); mpServer = new HttpServer(socket); mpServer->addRequestProcessor("/map.html", &displayForm); mpServer->start(); // Start the writer task. writerTask.start(); return OS_SUCCESS; }
// Initialize OsStatus SipRedirectorGateway::initialize(OsConfigDb& configDb, int redirectorNo, const UtlString& localDomainHost) { mDomainName = localDomainHost; OsSysLog::add(FAC_SIP, PRI_DEBUG, "%s::SipRedirectorGateway domainName = '%s'", mLogName.data(), mDomainName.data()); if (mReturn == OS_SUCCESS) { OsSysLog::add(FAC_SIP, PRI_DEBUG, "%s::SipRedirectorGateway Loading mappings from '%s'", mLogName.data(), mMappingFileName.data()); loadMappings(&mMappingFileName, &mMapUserToContacts, &mMapContactsToUser); // Set up the HTTP server on socket mPort. mpSocket = new OsServerSocket(50, mPort); mpServer = new HttpServer(socket); mpServer->addRequestProcessor("/map.html", &displayForm); mpServer->start(); // Start the writer task. mWriterTask.start(); } return mReturn; }
void MidiRouter::setup(std::initializer_list<std::shared_ptr<MidiDevice>> devices) { for (auto& device : devices) { addDevice(device); } loadMappings(); _eventRouter = std::make_shared<MidiEventRouter>(*this); _eventRouter->setup(); _eventRouter->attach(AppSystem::get().simulation().getEvents()); }
void eZapKeyboardSetup::init_eZapKeyboardSetup() { mappings=CreateSkinnedComboBox("mapping",4); CONNECT(CreateSkinnedButton("save")->selected, eZapKeyboardSetup::okPressed); BuildSkin("KeyboardSetup"); loadMappings(); }
Mappings::Mappings(Display *dpy) :_dpy(dpy) { loadMappings(); }