24 QString endPoint = communityUrl;
25 if ( endPoint.endsWith(
'/' ) )
29 endPoint += QLatin1String(
"/self" );
31 endPoint += QStringLiteral(
"/users/" ) + user;
33 QUrl queryUrl( endPoint );
34 QUrlQuery query( queryUrl );
35 query.addQueryItem( QStringLiteral(
"f" ), QStringLiteral(
"json" ) );
36 queryUrl.setQuery( query );
48 const QVariantMap info =
retrieveUserInfo( communityUrl, user, authcfg, errorTitle, errorText, requestHeaders, feedback );
49 return info.value( QStringLiteral(
"groups" ) ).toList();
59 QString endPoint = contentUrl;
60 if ( endPoint.endsWith(
'/' ) )
63 endPoint += QStringLiteral(
"/groups/" ) + groupId;
70 QUrl queryUrl( endPoint );
71 QUrlQuery query( queryUrl );
72 query.addQueryItem( QStringLiteral(
"f" ), QStringLiteral(
"json" ) );
73 query.addQueryItem( QStringLiteral(
"start" ), QString::number( start ) );
74 query.addQueryItem( QStringLiteral(
"num" ), QString::number( pageSize ) );
75 queryUrl.setQuery( query );
78 if ( !errorText.isEmpty() )
79 return QVariantList();
81 items.append( response.value( QStringLiteral(
"items" ) ).toList() );
86 const int total = response.value( QStringLiteral(
"total" ) ).toInt();
101 const QVariantList items =
retrieveGroupContent( contentUrl, groupId, authcfg, errorTitle, errorText, requestHeaders, feedback, pageSize );
105 for (
const QVariant &item : items )
107 const QVariantMap itemDef = item.toMap();
108 const QString itemType = itemDef.value( QStringLiteral(
"type" ) ).toString();
110 for (
const int filterType : itemTypes )
112 if ( typeToString(
static_cast< ItemType >( filterType ) ).compare( itemType, Qt::CaseInsensitive ) == 0 )
133 return QStringLiteral(
"Feature Service" );
135 return QStringLiteral(
"Map Service" );
137 return QStringLiteral(
"Image Service" );