equal
deleted
inserted
replaced
828 \endcode |
828 \endcode |
829 */ |
829 */ |
830 bool CaService::executeCommand(int entryId, const QString &command) const |
830 bool CaService::executeCommand(int entryId, const QString &command) const |
831 { |
831 { |
832 bool result = false; |
832 bool result = false; |
833 |
833 |
834 CaEntry *const temporaryEntry = getEntry(entryId); |
834 CaEntry *const temporaryEntry = getEntry(entryId); |
835 |
835 |
836 if (temporaryEntry != NULL) { |
836 if (temporaryEntry != NULL) { |
837 result = executeCommand(*temporaryEntry, command); |
837 result = executeCommand(*temporaryEntry, command); |
838 delete temporaryEntry; |
838 delete temporaryEntry; |
839 } |
839 } |
840 |
|
841 return result; |
840 return result; |
842 } |
841 } |
843 |
842 |
844 /*! |
843 /*! |
845 Execute command. |
844 Execute command. |
933 /*! |
932 /*! |
934 Constructor |
933 Constructor |
935 \param servicePublic pointer to public service |
934 \param servicePublic pointer to public service |
936 */ |
935 */ |
937 CaServicePrivate::CaServicePrivate(CaService *servicePublic) : |
936 CaServicePrivate::CaServicePrivate(CaService *servicePublic) : |
938 m_q(servicePublic), mProxy(new CaClientProxy()) |
937 m_q(servicePublic), mProxy(new CaClientProxy) |
939 { |
938 { |
940 const ErrorCode connectionResult = mProxy->connect(); |
939 const ErrorCode connectionResult = mProxy->connect(); |
941 |
940 |
942 USE_QWARNING_IF(connectionResult) |
941 USE_QWARNING_IF(connectionResult) |
943 << "CaServicePrivate::CaServicePrivate - unable to connect proxy"; |
942 << "CaServicePrivate::CaServicePrivate - unable to connect proxy"; |