26 #include <libaccounts-glib/ag-manager.h>
27 #include <libaccounts-glib/ag-service-type.h>
33 using namespace Accounts;
36 : m_serviceType(serviceType)
39 ag_service_type_ref(m_serviceType);
42 ServiceType::~ServiceType()
45 ag_service_type_unref(m_serviceType);
51 return UTF8(ag_service_type_get_name(m_serviceType));
59 id = ag_service_type_get_display_name(m_serviceType);
69 return ASCII(ag_service_type_get_i18n_domain(m_serviceType));
74 return ASCII(ag_service_type_get_icon_name(m_serviceType));
83 ag_service_type_get_file_contents(m_serviceType, &data, &len);
88 if (!doc.setContent(QByteArray(data, len),
true,
89 &errorStr, &errorLine, &errorColumn)) {
90 QString message(ASCII(
"Parse error reading serviceType file "
91 "at line %1, column %2:\n%3"));
92 message.arg(errorLine).arg(errorColumn).arg(errorStr);
93 qWarning() << __PRETTY_FUNCTION__ << message;
94 return QDomDocument();