C3200VolumeService::C3200VolumeService(): QtopiaIpcAdaptor("QPE/AudioVolumeManager/C3200VolumeService") { publishAll(Slots); QTimer::singleShot(0, this, SLOT(registerService())); }
AudioVolumeManager::AudioVolumeManager(): QtopiaIpcAdaptor("QPE/AudioVolumeManager") { publishAll(Slots); m_vsVolume = new QValueSpaceObject("/Volume"); }
/*! \service PackageManagerService PackageManager \brief Provides the Package Manager service. The \i{Package Manager} service enables package installations to be triggered remotely. A package install can be started by invoking the service message \c{installPackageConfirm(QString)} with URL of the descriptor of the package to install. Package manager will then download the descriptor and after gaining the users consent download the package and install it. \sa QtopiaAbstractService */ PackageManagerService::PackageManagerService( PackageView *parent ) : QtopiaAbstractService( QLatin1String( "PackageManager" ), parent ) , m_installer( 0 ) , m_packageView( parent ) { publishAll(); }
BtxqAddrService::BtxqAddrService(QObject* parent) : XQServiceProvider(BluetoothServiceShowLocalAddress, parent), mDialog(0), mCurrentRequestIndex(0), mError(0) { publishAll(); connect(this, SIGNAL(returnValueDelivered()), qApp, SLOT(quit())); }
QtopiaMediaProvider::QtopiaMediaProvider(SessionManager* sessionManager): QtopiaAbstractService(QTOPIA_MEDIASERVER_CHANNEL), d(new QtopiaMediaProviderPrivate) { qLog(Media) << "QtopiaMediaProvider starting"; d->sessionManager = sessionManager; publishAll(); }
CntServiceProviderOld::CntServiceProviderOld(CntServices& aServices, QObject *parent): XQServiceProvider(QLatin1String("com.nokia.services.phonebookservices.Fetch"), parent), mServices(aServices), mCurrentRequestIndex(0) { CNT_ENTRY publishAll(); connect(this, SIGNAL(clientDisconnected()), &mServices, SLOT(quitApp())); CNT_EXIT }
EzxVolumeService::EzxVolumeService(): QtopiaIpcAdaptor("QPE/AudioVolumeManager/EzxVolumeService") { publishAll(Slots); m_d = new EzxVolumeServicePrivate; m_d->currVolume = 0; setVolume(60); QTimer::singleShot(0, this, SLOT(registerService())); }
DTMFServiceDepricated::DTMFServiceDepricated( MPECallControlIF &call, MPECallSettersIF ¶meters, QObject* parent) : XQServiceProvider( QLatin1String("com.nokia.symbian.IDtmfPlay"), parent), m_call(call), m_parameters(parameters) { publishAll(); }
Messenger::Messenger(QBluetoothAbstractService *service) : QtopiaIpcAdaptor("QPE/BluetoothServiceProviders", service), m_service(service) { publishAll(SignalsAndSlots); QObject::connect(service, SIGNAL(started(bool,QString)), SLOT(started(bool,QString))); QObject::connect(service, SIGNAL(stopped()), SLOT(stopped())); // register the service at the end of this run loop QTimer::singleShot(0, this, SLOT(registerSelf())); }
TrackingOctomapServer::TrackingOctomapServer(const std::string& filename) : OctomapServer() { //read tree if necessary if (filename != "") { if (m_octree->readBinary(filename)) { ROS_INFO("Octomap file %s loaded (%zu nodes).", filename.c_str(), m_octree->size()); m_treeDepth = m_octree->getTreeDepth(); m_res = m_octree->getResolution(); m_gridmap.info.resolution = m_res; publishAll(); } else { ROS_ERROR("Could not open requested file %s, exiting.", filename.c_str()); exit(-1); } } ros::NodeHandle private_nh("~"); std::string changeSetTopic = "changes"; std::string changeIdFrame = "/talker/changes"; private_nh.param("topic_changes", changeSetTopic, changeSetTopic); private_nh.param("change_id_frame", change_id_frame, changeIdFrame); private_nh.param("track_changes", track_changes, false); private_nh.param("listen_changes", listen_changes, false); private_nh.param("min_change_pub", min_change_pub, 0); if (track_changes && listen_changes) { ROS_WARN("OctoMapServer: It might not be useful to publish changes and at the same time listen to them." "Setting 'track_changes' to false!"); track_changes = false; } if (track_changes) { ROS_INFO("starting server"); pubChangeSet = private_nh.advertise<sensor_msgs::PointCloud2>( changeSetTopic, 1); m_octree->enableChangeDetection(true); } if (listen_changes) { ROS_INFO("starting client"); subChangeSet = private_nh.subscribe(changeSetTopic, 1, &TrackingOctomapServer::trackCallback, this); } }
/*! * Constructor. */ CxuiServiceProvider::CxuiServiceProvider(CxeEngine *engine) : XQServiceProvider("cxui." + XQI_CAMERA_CAPTURE), mRequestIndex(-1), mEngine(engine), mRequestedMode(Cxe::ImageMode), mCameraIndex(0), mQuality(0), mAllowModeSwitching(true), mAllowQualityChange(true), mAllowCameraSwitching(true), mWindowTitle("") { CX_DEBUG_ENTER_FUNCTION(); publishAll(); CX_DEBUG_EXIT_FUNCTION(); }
/*! Creates a QtopiaVpnManager instance with the given \a parent. */ QtopiaVpnManager::QtopiaVpnManager( QObject* parent ) : QtopiaIpcAdaptor( QLatin1String("QPE/VPNManager"), parent ) { publishAll( QtopiaIpcAdaptor::Slots ); QString certificateString=QLatin1String("Certificate"), securityKeyString=QLatin1String("Security Key"); // Ensure these system categories exist QCategoryManager cats("Documents"); // For new code a more unique id should be used instead of using the untranslated text // eg. ensureSystemCategory("com.mycompany.myapp.mycategory", "My Category"); cats.ensureSystemCategory(certificateString, certificateString); cats.ensureSystemCategory(securityKeyString, securityKeyString); vpnFactory = new QVPNFactory(); vpnFactory->setServerMode( true ); qLog(VPN) << "Starting VPN Manager"; }
/*! UriSchemeHandlerService::UriSchemeHandlerService. */ UriSchemeHandlerService::UriSchemeHandlerService( MPECallControlIF &call, MPECallSettersIF ¶meters, QObject* parent) : XQServiceProvider( QLatin1String("phoneui.com.nokia.symbian.IUriView"), parent), m_callControlIf(call), m_callParameters(parameters) { PHONE_DEBUG("UriSchemeHandlerService::UriSchemeHandlerService"); publishAll(); QScopedPointer<UriSchemeParser> telUriParser( new TelUriSchemeParser(this)); m_parsers.append(telUriParser.data()); telUriParser.take(); QScopedPointer<UriSchemeParser> ctiUriParser( new CtiUriSchemeParser(this)); m_parsers.append(ctiUriParser.data()); ctiUriParser.take(); }
/*! KeySequenceRecognitionProvider::KeySequenceRecognitionProvider. */ KeySequenceRecognitionProvider::KeySequenceRecognitionProvider( QObject* parent) : XQServiceProvider(QLatin1String( "keysequencerecognitionservice.com.nokia.symbian.IKeySequenceRecognition"), parent), m_keySequenceValidator("") { DPRINT_METHODENTRYEXIT; publishAll(); setupLocalization(); // One should not call anything exception generating after handlers are // created because memory for handlers will be leaked on an exception // while being in c++ constructor. constructKeySequenceHandlers(); // Keysequencerecognitionprovider to be invisible in taskswitcher TsTaskSettings taskSettings; taskSettings.setVisibility(false); }
/*! \internal */ EmailService::EmailService(QObject* parent) : QtopiaAbstractService("Email", parent) { publishAll(); }
/*! \internal */ SuspendService::SuspendService(QObject *parent) : QtopiaAbstractService("Suspend", parent) { publishAll(); }
MsgSendServiceInterface::MsgSendServiceInterface(QObject* parent, MsgViewManager* manager) :XQServiceProvider( QLatin1String("com.nokia.services.hbserviceprovider.imessage.send"),parent), mViewManager(manager) { publishAll(); }
/*! \internal */ InstantMessageService::InstantMessageService(QObject* parent) : QtopiaAbstractService("InstantMessage", parent) { publishAll(); }
/*! \internal Construct a new VirtualKeyboardService instance with the provided \a parent. */ VirtualKeyboardService::VirtualKeyboardService( QObject *parent ) : QtopiaAbstractService( "VirtualKeyboard", parent ) { publishAll(); }
/** * On octomap data changed */ void CButServer::onOcMapDataChanged( const srs::tButServerOcMap & mapdata ) { // Publish all data publishAll(ros::Time::now() ); }