예제 #1
0
HIDServer::HIDServer(QObject *parent) :
    QObject(parent),
    m_state(HIDServer::IDLE),
    m_serviceDescriptor(this),
    m_interruptChannel(this),
    m_controlChannel(this),
    m_interruptSocket(0),
    m_controlSocket(0)
{
    configureChannels();
}
예제 #2
0
void LoggingConfigurator::configure(AbstractConfiguration* pConfig)
{
    poco_check_ptr (pConfig);

    AutoPtr<AbstractConfiguration> pFormattersConfig(pConfig->createView("logging.formatters"));
    configureFormatters(pFormattersConfig);

    AutoPtr<AbstractConfiguration> pChannelsConfig(pConfig->createView("logging.channels"));
    configureChannels(pChannelsConfig);

    AutoPtr<AbstractConfiguration> pLoggersConfig(pConfig->createView("logging.loggers"));
    configureLoggers(pLoggersConfig);
}
예제 #3
0
void CDPlayer::mouseDown(const MouseEvent& event)
{
    if (event.eventComponent != &m_configureButton)
        return;

    PopupMenu m;
    m.addItem(1, TRANS("configure channels"));
    m.addItem(2, TRANS("configure appearance"));
    const int result = m.show();

    switch (result)
    {
    case 1:
        configureChannels();
        break;
    case 2:
        showEditDialog();
        break;
    }
}