Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V.next merged with main #1701

Merged
merged 483 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
483 commits
Select commit Hold shift + click to select a range
26b79a6
Hide accessory button in qml sample (#1414)
Jun 22, 2022
5a12138
Add templates (#1415)
tanneryould Jun 22, 2022
521ab95
Fix C++ deprecations (#1416)
Jun 23, 2022
9ede4b0
Define QUOTE in v.next (#1419)
tanneryould Jun 23, 2022
d6094a4
Remove executable permissions from .pri files (#1417)
tanneryould Jun 24, 2022
24930b1
Tanner/ganalytics fix vnext (#1421)
tanneryould Jun 24, 2022
f700ae1
Fix sample name casing (#1422)
Jun 27, 2022
a6bab3d
Add patch version (#1423)
tanneryould Jun 28, 2022
7a09ed2
Tanner/patch version fix (#1424)
tanneryould Jun 28, 2022
4b57e02
Add new line to QML readme (#1425)
Jun 29, 2022
2dbdd06
Tanner/samples pro file (#1426)
tanneryould Jun 30, 2022
9176745
New Sample: Set Max Extent
Jul 7, 2022
a0bbea3
Update screenshot and dash/dot in QML sample to match C++ (#1429)
Jul 7, 2022
40c17ad
Remove support for internal feature. (#1431)
JamesMBallard Jul 11, 2022
c44acad
Indoor positioning sample (#1428)
tanneryould Jul 15, 2022
566a518
Tanner/fix sv ips build (#1433)
tanneryould Jul 18, 2022
7487317
Add sample viewer reminder (#1434)
tanneryould Jul 19, 2022
a0e4ce1
update screenshot (#1436)
tanneryould Jul 25, 2022
c06db56
Update pro and readme templates (#1430)
Jul 26, 2022
0476324
New sample: Export vector tiles (#1435)
tanneryould Aug 1, 2022
7661a0c
Rename Generate Geodatabase sample (#1437)
Aug 2, 2022
e87ef0d
Update README url (#1432)
tanneryould Aug 3, 2022
587c818
revert redirect_from link (#1439)
Aug 3, 2022
9537081
Gela/update cql query (#1438)
Aug 3, 2022
afb97c4
Tanner/qml ips bluetooth plist fix (#1440)
tanneryould Aug 4, 2022
b6f5596
Tanner/ios qstandardpath (#1441)
tanneryould Aug 4, 2022
535122c
Adds the IndoorsLocationDataSourceCreator source files to the json (#…
tanneryould Aug 9, 2022
0c4d524
New Sample: Create mobile geodatabase (#1443)
tanneryould Aug 10, 2022
0d82a7d
Fix redirect_from links (#1447)
Aug 16, 2022
14cc997
Replace USA tapestry with functional data (#1448)
Aug 23, 2022
0a89e0b
Clean up includes for samples with offline data (#1450)
Aug 23, 2022
9911fbe
New Sample: Navigate a route with rerouting (#1445)
Aug 23, 2022
15e92ba
Clip geometry and cut geometry reset button (#1449)
Aug 24, 2022
1e752f7
nearest vertex sample: fix panning issue (#1453)
Aug 24, 2022
8f5cfad
Updating version from 100.15.0 to 200.0.0 (#1458)
mfeigl Aug 31, 2022
c52a100
Update set max extent version to 200.0.0 (#1459)
tanneryould Aug 31, 2022
172dedc
Navigate a route with rerouting: Code review comments from Lucas and …
Aug 31, 2022
6261915
New Sample: Display Route Layer (#1457)
Sep 1, 2022
5d0c25b
Replace QStringRef with QStringView (#1461)
Sep 2, 2022
ed550b9
Remove version numbers (#1464)
tanneryould Sep 6, 2022
24497aa
Tanner/fix search criteria classes (#1463)
tanneryould Sep 6, 2022
e369f92
Tanner/qt6 samples (#1465)
tanneryould Sep 7, 2022
f2f2b75
Remove duplicate controls imports (#1467)
tanneryould Sep 7, 2022
c3a8d42
Remove TTS from QML sample (#1466)
tanneryould Sep 7, 2022
52af6e1
Update DisplayWfsLayer.pro (#1468)
Sep 9, 2022
2e9d494
Nest namespaces using C++17 standards (#1452)
Sep 9, 2022
cbd5222
Fix null width warnings (#1471)
Sep 9, 2022
cfa3724
Compile errors (#1473)
Sep 9, 2022
d8112e2
Tanner/spelling grammar fixes (#1472)
tanneryould Sep 12, 2022
a0557d3
Update NavigateRoute.pro (#1470)
Sep 13, 2022
8161e4a
updating to avoid ambiguous type (#1474)
ldanzinger Sep 14, 2022
254ec34
fixing C++ sample build errors (#1475)
ldanzinger Sep 15, 2022
89cafa2
James/explicit base ctors (#1476)
JamesMBallard Sep 15, 2022
efc59ee
changed c++ version to c++17 (#1478)
annika-oeth Sep 20, 2022
352debd
Make doubled comments single (#1477)
tanneryould Sep 20, 2022
e1d45c3
System reachability (#1479)
tanneryould Sep 21, 2022
8660a26
Tanner/qt6 not type errors (#1469)
tanneryould Sep 21, 2022
0289e34
Utility network deprecations (#1480)
tanneryould Sep 22, 2022
39b0146
declare mouse parameters in a few more samples (#1481)
tanneryould Sep 22, 2022
a90d14a
enabled opengl in all sample main.cpp files (#1485)
annika-oeth Sep 26, 2022
d4f86e0
Further warnings and errors resolved in C++ sample viewer (#1482)
Sep 27, 2022
df5063c
Remove missing modules (#1487)
tanneryould Sep 27, 2022
74cbf4d
Guil8553/fix includes (#1484)
GuillaumeBelz Sep 27, 2022
7feea6d
Replace `QtWebEngine` with `QtWebEngineQuick` plus some other misc fi…
Sep 27, 2022
95cab03
Update elevation data (#1489)
Sep 27, 2022
df608bc
Tanner/create mobile gdb cleanup (#1491)
tanneryould Sep 27, 2022
aee9c04
James/ios build (#1492)
JamesMBallard Sep 28, 2022
2265f69
Gela/dialog (#1494)
Sep 29, 2022
c9773cb
android version 23 -> 26 (#1493)
PaulAllanSturm Sep 29, 2022
7453223
change to QtWebEngineQuick in sample viewer (#1495)
Sep 30, 2022
cebc08b
remove all .DS_Store files (#1497)
Sep 30, 2022
36876b7
Fix type errors in QML samples (#1496)
Sep 30, 2022
bdecbbb
QtWebEngine to QtWebEngineQuick (#1498)
tanneryould Sep 30, 2022
6b2e816
Fix callout width in IdentifyKmlFeatures (#1500)
PaulAllanSturm Oct 4, 2022
8f69738
hook up the BusyIndicator to the mapDrawing status (#1499)
PaulAllanSturm Oct 4, 2022
058590b
adding missing include (#1502)
ldanzinger Oct 5, 2022
fc0764d
Remove toolkit import (#1501)
Oct 5, 2022
7914478
Fix C++ sample (#1503)
Oct 7, 2022
99f92a8
fix QML sample (#1505)
Oct 10, 2022
e409775
update sample so it launches correctly (#1507)
ldanzinger Oct 11, 2022
fdef3ad
Fix null width (#1508)
Oct 11, 2022
4571ad7
Update offline sample data handling (#1509)
tanneryould Oct 11, 2022
39a95bc
Awilliams/callout deprecations removal (#1504)
mrwillyees Oct 12, 2022
0d9e1b2
Add new dependency (#1510)
JamesMBallard Oct 13, 2022
0aa1ec4
Use the proper identifier. (#1512)
JamesMBallard Oct 13, 2022
4733173
Awilliams/job cancel deprecation (#1506)
mrwillyees Oct 14, 2022
c108f80
Fix type errors in QML samples (#1511)
Oct 17, 2022
bcc1d28
QML JS on Windows did not like this date format (#1513)
PaulAllanSturm Oct 17, 2022
9604503
make sure QtWebEngineQuick is initialized (#1515)
PaulAllanSturm Oct 17, 2022
3871bc1
Tanner/sample verification (#1514)
tanneryould Oct 17, 2022
71e2674
Update GAnalytics.cpp (#1517)
ldanzinger Oct 18, 2022
28a7180
Update NetworkRequiredView.qml (#1516)
ldanzinger Oct 18, 2022
85c2838
add elevation data (#1518)
Oct 18, 2022
7570d2b
Add back extractNativeLibs="true" (#1519)
JamesMBallard Oct 19, 2022
2e1e3f7
Change data path strings to urls (#1520)
tanneryould Oct 20, 2022
771f8fb
Replace picture urls (#1521)
tanneryould Oct 21, 2022
d5dbc52
Add raster function file to non-mac qml sample viewer (#1522)
tanneryould Oct 24, 2022
5576bff
Allow reachability unknown
tanneryould Oct 25, 2022
8c38d5d
"message" needs to be the second parameter (#1524)
PaulAllanSturm Oct 25, 2022
f8acac0
Edit Feature Attachment sample: need "width" to show up (#1525)
PaulAllanSturm Oct 26, 2022
a1e14ce
only enable button if combobox has a selection (#1526)
PaulAllanSturm Oct 27, 2022
384647e
connect error dialog to appropriate signal (#1527)
PaulAllanSturm Oct 27, 2022
18a8d91
"thumbnail" argument is a url, so it has to be an empty string rather…
PaulAllanSturm Oct 28, 2022
ae0d232
Handle situation where a portal item already exists (#1528)
PaulAllanSturm Oct 28, 2022
21eb0cb
isSupportsApiKey was being ignored on QML side (#1530)
PaulAllanSturm Oct 31, 2022
d039867
"featureLayer" should be "layer" (#1531)
PaulAllanSturm Oct 31, 2022
64b7dc9
clear up some type errors in the console (#1533)
PaulAllanSturm Nov 1, 2022
916be82
need to pick up background color (#1532)
PaulAllanSturm Nov 1, 2022
da8ddbe
clarify the status message when we're reusing an existing item (#1534)
PaulAllanSturm Nov 2, 2022
1e8b457
Check for data at writable location (#1536)
tanneryould Nov 3, 2022
73f6510
fix parameter list (#1535)
PaulAllanSturm Nov 3, 2022
ee80c85
Tanner/remove qt5 compat (#1538)
tanneryould Nov 7, 2022
46c2a60
Download all data fix (#1537)
tanneryould Nov 7, 2022
abee70f
Prevent duplicate field crash (#1539)
tanneryould Nov 7, 2022
ef68929
registering the toolkit components must happen before loading the qml…
PaulAllanSturm Nov 7, 2022
12f3298
used "pngcrush" to correct a libpng warning (#1540)
PaulAllanSturm Nov 7, 2022
4ed559a
Update QML image with verified img from C++ (#1542)
tanneryould Nov 7, 2022
0427fd7
properly initialize webengine (#1543)
PaulAllanSturm Nov 7, 2022
48a93aa
Add the necessary header so Local Server can be detected. (#1544)
JamesMBallard Nov 9, 2022
d420a3e
Expand local server platform detection. (#1547)
JamesMBallard Nov 9, 2022
fbe7ee2
Use temp data locations (#1545)
tanneryould Nov 9, 2022
6c25ca2
Update offline paths documentation (#1546)
tanneryould Nov 9, 2022
34bf0e0
Tanner/change main.cpp init orders (#1548)
tanneryould Nov 10, 2022
194098b
using preprocessor ifdef instead of only if (#1550)
mrwillyees Nov 15, 2022
19add27
Add support for better error handling. (#1549)
JamesMBallard Nov 16, 2022
6e6b89d
Portal item collision (#1552)
tanneryould Nov 16, 2022
a8b8a10
Tanner/rename for maps sdk (#1551)
tanneryould Nov 22, 2022
3e14317
these properties were deprecated and removed (#1554)
ldanzinger Nov 29, 2022
42662c1
Update geodatabase AGOL id (#1556)
tanneryould Dec 2, 2022
23ab1e5
Samples .PRO fixes and warning fixes (#1555)
tanneryould Dec 2, 2022
dd23052
Fix certain issues on Android 11+ (#1557)
PaulAllanSturm Dec 2, 2022
ab051ff
set implicitHeight of callouts (#1558)
tanneryould Dec 5, 2022
cdfda0d
disable allowNativeHeapPointerTagging to support Android 11+ (#1559)
PaulAllanSturm Dec 5, 2022
d95a977
Tanneryould/cpp samples template update (#1560)
tanneryould Dec 7, 2022
2317fbb
Awilliams/200.1.0 (#1561)
mrwillyees Dec 12, 2022
c4fdea4
Samples tech debt (#1562)
tanneryould Dec 13, 2022
17f05f5
Remove test api key (#1565)
tanneryould Dec 13, 2022
b07ad74
Update samples that use OfflineMapTask (#1553)
sbiswas96 Dec 15, 2022
de31f95
Tanner/remove confidential notice (#1566)
tanneryould Dec 15, 2022
12a3465
Fix path. (#1568)
JamesMBallard Dec 19, 2022
557f81e
updating toolkit and samples reference to maps sdk (#1572)
ldanzinger Jan 5, 2023
8af6bb5
Add Display feature layers sample (#1569)
tanneryould Jan 11, 2023
455c875
Update enum in sketch editor (#1573)
tanneryould Jan 12, 2023
0ead697
Update MouseEvent.pos() to .position() (#1574)
tanneryould Jan 13, 2023
1d4637d
Tan11389/navigate route fix (#1575)
tanneryould Jan 19, 2023
fe6df94
Update gdb link (#1577)
tanneryould Jan 20, 2023
1028ccf
The path of least resistance. (#1578)
JamesMBallard Jan 24, 2023
4924d6a
removed Qt::AA_UseOpenGLES (#1581)
annika-oeth Feb 10, 2023
4747d6d
Add some markers for the doc build to include code snippets. (#1582)
JamesMBallard Feb 15, 2023
e04cef8
Update AR samples for Qt 6 (#1584)
tanneryould Feb 22, 2023
45c0f29
Remove no predictive text enum (#1583)
tanneryould Feb 23, 2023
59c1e5a
Revert remove enum from search (#1585)
tanneryould Feb 24, 2023
e989e8c
Fix property name (#1587)
tanneryould Mar 21, 2023
3e382a7
Pass by const ref (#1586)
tanneryould Mar 21, 2023
d43ebf4
Tanneryould/dynamic entities sample (#1588)
tanneryould Mar 27, 2023
6d3b8b1
Add clarifying comment (#1589)
tanneryould Mar 30, 2023
83b35e2
Add OK button (#1590)
tanneryould Apr 4, 2023
dd103cf
Update Unique_Value_Renderer.qml (#1591)
ldanzinger Apr 4, 2023
6caeeb5
Further enum fixes (#1592)
tanneryould Apr 4, 2023
cf9075b
Access correct property for error message (#1593)
tanneryould Apr 5, 2023
490a95b
Update sample viewer downloader
tanneryould Apr 13, 2023
2c636f1
Correctly handle exceptions raised when checking README title, descri…
AndrewBladon Apr 17, 2023
ca2b564
Revert "Update sample viewer downloader" (#1598)
tanneryould Apr 17, 2023
d066084
updated samples files to 200.2.0 (#1596)
annika-oeth Apr 19, 2023
2a6aa1f
Update sample viewer downloader (#1600)
tanneryould Apr 19, 2023
98aa8c3
Add Create and edit geometries sample (QML only) (#1594)
AndrewBladon Apr 20, 2023
1ab6179
Add Geometry editor (#1602)
tanneryould May 15, 2023
781262d
emit state change when editor stopped (#1603)
tanneryould May 17, 2023
d2908a9
Update Qt version number (#1604)
tanneryould May 18, 2023
da3886b
Create sample viewer home page (#1601)
tanneryould May 23, 2023
f599507
Qt 6.5 UI Fixes (#1607)
tanneryould May 24, 2023
434b9d0
Don't initialize sample viewer with a sample (#1608)
tanneryould May 24, 2023
21a96ed
Define error variable (#1609)
tanneryould May 25, 2023
0be97b7
Force sample viewer light mode (#1610)
tanneryould May 25, 2023
7444562
Update WMS layer URL (#1611)
tanneryould May 30, 2023
8e7e9a9
QSG_RHI_BACKEND env no longer honored at 6.5.1. (#1612)
JamesMBallard Jun 7, 2023
a1d0101
on iOS with Qt 6.5.1, a TextEdit with focus prevents buttons from get…
PaulAllanSturm Jun 8, 2023
dacd26c
Use unit factory in geodesic buffer and fix enum typo (#1614)
tanneryould Jun 12, 2023
a865b16
Update the required version in the doc (#1615)
PaulAllanSturm Jun 15, 2023
cd9c4d1
Tanneryould/xml parser samples (#1616)
tanneryould Jun 22, 2023
033eccb
README fixes (#1617)
tanneryould Jun 22, 2023
a1e774c
Tanner/q future rerouting (#1618)
tanneryould Jun 26, 2023
539e27b
No need to enforce OpenGL anymore. (#1619)
JamesMBallard Jun 27, 2023
e2ac9ca
Tanner/remove ganalytics (#1620)
tanneryould Jun 28, 2023
029c9e2
Reference correct scene layer in README (#1621)
tanneryould Jun 28, 2023
b3423e7
Revert removal of TTS (#1622)
tanneryould Jun 29, 2023
e18c68e
AR updates (#1624)
JamesMBallard Jul 26, 2023
51d5fdb
Applying Ajith's fixes. (#1625)
JamesMBallard Jul 28, 2023
83b026f
Shell0002/geomedit shapes rotate scale (#1623)
shellygill Jul 31, 2023
b377d0d
Bri12415/guiproblems (#1627)
bri12415 Jul 31, 2023
9767726
Bri12415/fixlistcrash (#1628)
bri12415 Jul 31, 2023
deacac0
Use the last location in the list of PicturesLocation, which correctl…
PaulAllanSturm Aug 3, 2023
ffd3d5d
Disable the location display when switching between samples. (#1630)
JamesMBallard Aug 4, 2023
a370dc0
The MapView is not declared within the QML sample. (#1632)
JamesMBallard Aug 7, 2023
410bd88
Update geometry SR to match map SR. (#1631)
shellygill Aug 8, 2023
9df9711
implicit width (#1634)
bri12415 Aug 9, 2023
cdb668c
add Display points using clustering feature reduction sample (#1633)
tanneryould Aug 14, 2023
eb46e1b
Resolve conflicts between v.next and main
tanneryould Aug 16, 2023
50e0f9e
Renames the sampls to be consistent with naming conventions (#1637)
tanneryould Aug 16, 2023
2703375
Version update. (#1639)
JamesMBallard Aug 17, 2023
bd2e62d
Add scene filtering to v.next (#1640)
tanneryould Aug 23, 2023
cefff65
Shorten path (#1642)
tanneryould Aug 24, 2023
e2f4023
Tanner/main to vnext (#1645)
tanneryould Aug 28, 2023
cb615c8
Update screenshots (#1646)
tanneryould Aug 29, 2023
3710a66
QFuturize samples (#1649)
bri12415 Sep 11, 2023
f0b8a70
Bri12415/q futurize map (#1650)
bri12415 Sep 13, 2023
4c17597
Samples updates for Edit Data category
JamesMBallard Sep 19, 2023
143791d
Ported to QFuture Async (#1651)
aji13187 Sep 19, 2023
d12f3ba
Bri12415/q futurize display info (#1652)
bri12415 Sep 19, 2023
752d72a
Porting Analysis sample to Async (#1656)
aji13187 Sep 20, 2023
e2f84e2
James/port samples features (#1654)
JamesMBallard Sep 20, 2023
a1dc06a
Bri12415/q futurize geo local (#1655)
bri12415 Sep 21, 2023
626924e
Bri12415/q futurize scenes (#1657)
bri12415 Sep 21, 2023
a7318f5
Updated samples to use QFuture tasks - Layers (#1658)
aji13187 Sep 22, 2023
75f0b0e
Jared/8584 stragglers (#1659)
jared-2016 Sep 25, 2023
d7b6fa1
Update missed readmes (#1660)
bri12415 Sep 25, 2023
ae80cf6
Bri12415/q futurize remaining (#1661)
bri12415 Nov 2, 2023
bc7a5f9
qfuturize (#1663)
bri12415 Nov 6, 2023
cf02c09
Aji13187/qt653 error (#1664)
aji13187 Nov 14, 2023
c5a53e0
Extras import path is added for CppSamplesApp (#1666)
aji13187 Nov 15, 2023
4677b0c
fix path to cpp project file (#1665)
GuillaumeBelz Nov 15, 2023
421077b
Fix crash. (#1668)
JamesMBallard Nov 28, 2023
b49b236
Update sample with new url (#1669)
tanneryould Nov 28, 2023
4d26a4a
Don't delete objects with pending tasks (#1670)
JamesMBallard Nov 30, 2023
79e6ef3
Fixed few warnings in samples (#1673)
aji13187 Dec 6, 2023
54a8c25
upgrade version to 200.4 (#1676)
GuillaumeBelz Dec 12, 2023
dae9f9b
Guil8553/8710 clustering (#1672)
GuillaumeBelz Dec 13, 2023
6869bfe
fix .pro for toolkit (#1677)
GuillaumeBelz Dec 13, 2023
8f0ae50
rename to shorter name, to fix build (#1678)
GuillaumeBelz Dec 15, 2023
9587c49
Updating samples to use BasemapStyle (#1679)
har13205 Jan 25, 2024
06bfe4e
Updating the Change Renderer button functionality (#1680)
har13205 Feb 5, 2024
ddd8d3b
add android x86_64 (#1682)
GuillaumeBelz Feb 20, 2024
681de72
Bri12415/q futurize portal user (#1681)
bri12415 Feb 20, 2024
ee7c290
Bri12415/q futurize portal (#1683)
bri12415 Feb 20, 2024
1767834
Fix Portal user info sample (#1684)
har13205 Feb 22, 2024
6ac3688
Updating sample names (#1685)
har13205 Feb 27, 2024
4708aaa
Fix portal user info sample (#1686)
har13205 Feb 27, 2024
501830a
Adding Configure basemap style language sample (#1688)
har13205 Mar 6, 2024
892ad25
callout added to dynamic entity (#1687)
aji13187 Mar 11, 2024
e7cf144
disable when not visible (#1690)
GuillaumeBelz Mar 19, 2024
936ccaa
retry load if failed (#1692)
bri12415 Mar 20, 2024
937a7ab
Adding Validate utility network topology sample (#1689)
har13205 Mar 21, 2024
31f6215
Fix for wrong busy indicator for ShowOrgBasemaps (#1693)
aji13187 Mar 21, 2024
4496d37
Fix validate utility network message (#1694)
har13205 Mar 22, 2024
4bb0adb
Change signal names in Validate UN topology sample (#1695)
har13205 Mar 26, 2024
a660c68
Change for anonymous sign-in to do not challenge (#1696)
aji13187 Mar 27, 2024
b892382
Jare8800/cluster enhancement (#1697)
jared-2016 Mar 28, 2024
1d3af1f
Jare8800/fix clusters (#1698)
jared-2016 Mar 29, 2024
1d21ba7
Add the sample for 3d tiles layer (#1662)
jingyili1023 Apr 4, 2024
4ec04b6
Merge branch 'main' into v.next_merged_with_main
ldanzinger Apr 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QT += opengl qml quick
TEMPLATE = app
TARGET = DisplayScenesInTabletopAR

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

#-------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QT += opengl qml quick
TEMPLATE = app
TARGET = ExploreScenesInFlyoverAR

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

#-------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CONFIG += c++17
# additional modules are pulled in via arcgisruntime.pri
QT += opengl qml quick

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

TEMPLATE = app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CONFIG += c++17
# additional modules are pulled in via arcgisruntime.pri
QT += opengl qml quick

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

TEMPLATE = app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QT += opengl qml quick
TEMPLATE = app
TARGET = DistanceMeasurementAnalysis

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

#-------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QT += opengl qml quick
TEMPLATE = app
TARGET = Geotriggers

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

#-------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QT += opengl qml quick
TEMPLATE = app
TARGET = LineOfSightGeoElement

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

#-------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QT += opengl qml quick
TEMPLATE = app
TARGET = LineOfSightLocation

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

#-------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QT += opengl qml quick
TEMPLATE = app
TARGET = StatisticalQuery

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

#-------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QT += opengl qml quick
TEMPLATE = app
TARGET = StatisticalQueryGroupSort

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

#-------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QT += opengl qml quick
TEMPLATE = app
TARGET = ViewshedCamera

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

#-------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QT += opengl qml quick
TEMPLATE = app
TARGET = ViewshedGeoElement

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

#-------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QT += opengl qml quick
TEMPLATE = app
TARGET = ViewshedLocation

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

#-------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
#include "OAuthClientInfo.h"
#include "PortalUser.h"
#include "Error.h"
#include "ErrorException.h"
#include "ErrorInformationKeys.h"

#include <QFuture>
#include <QVariantMap>

using namespace Esri::ArcGISRuntime;
Expand Down Expand Up @@ -140,7 +142,11 @@ bool AddItemsToPortal::busy() const

void AddItemsToPortal::authenticatePortal()
{
if (m_portal)
if (!m_portal)
return;
if (m_portal->loadStatus() == LoadStatus::FailedToLoad)
m_portal->retryLoad();
else
m_portal->load();
}

Expand All @@ -151,10 +157,36 @@ void AddItemsToPortal::addItem()

m_busy = true;

//! [PortalUser addItemWithUrl]
//! [PortalUser addItemWithUrlAsync]
QUrl localCSV("qrc:/Samples/CloudAndPortal/AddItemsToPortal/add_item_sample.csv");
m_user->addPortalItemWithUrl(m_item, localCSV, "add_item_sample.csv" );
//! [PortalUser addItemWithUrl]
m_user->addPortalItemWithUrlAsync(m_item, localCSV, "add_item_sample.csv" ).then(
[this]()
{
m_busy = false;

setStatusText("Successfully added item. " + m_item->itemId());
m_item->load();
})
//! [PortalUser addItemWithUrlAsync]
.onFailed(
[this](const ErrorException& e)
{
m_busy = false;

// Check for service error 409 "Conflict" - item already exists
const QVariantMap additionalInfo = e.error().additionalInformation();
if (additionalInfo.contains(ErrorInformationKeys::serviceError()) &&
additionalInfo.value(ErrorInformationKeys::serviceError()).toInt() == 409)
{
m_alreadyExisted = true;
setStatusText("Item already exists; fetching existing item instead. " + m_item->itemId());
fetchItem();
}
else
{
setStatusText(e.error().message());
}
});
}

void AddItemsToPortal::deleteItem()
Expand All @@ -163,35 +195,39 @@ void AddItemsToPortal::deleteItem()
return;

m_busy = true;
m_user->deletePortalItem(m_item);
}

void AddItemsToPortal::connectUserSignals()
{
if (!m_user)
return;
m_user->deletePortalItemAsync(m_item).then(
[this]()
{
m_busy = false;
m_itemDeleted = true;

connect(m_user, &PortalUser::errorOccurred, this, [this](const Error& error)
emit itemDeletedChanged();
emit portalItemIdChanged();
emit portalItemTitleChanged();
emit portalItemTypeNameChanged();

setStatusText("Successfully deleted item. " + m_item->itemId());
}).onFailed(
[this](const ErrorException& e)
{
m_busy = false;
setStatusText(QString(error.message() + ": " + error.additionalMessage()));

// Check for service error 409 "Conflict" - item already exists
const QVariantMap additionalInfo = error.additionalInformation();
if (additionalInfo.contains(ErrorInformationKeys::serviceError()) &&
additionalInfo.value(ErrorInformationKeys::serviceError()).toInt() == 409)
{
m_alreadyExisted = true;
m_user->fetchContent();
m_busy = true;
}
setStatusText(e.error().message());
});
}

connect(m_user, &PortalUser::fetchContentCompleted, this, [this](bool success)
void AddItemsToPortal::fetchItem()
{
if (!m_user || !m_item)
return;

m_busy = true;

m_user->fetchContentAsync().then(
[this]()
{
m_busy = false;
if (!success)
return;

for (PortalItem* item : *m_user->items())
{
Expand All @@ -203,37 +239,20 @@ void AddItemsToPortal::connectUserSignals()
}
}
});
}

//! [PortalUser addPortalItemCompleted]
connect(m_user, &PortalUser::addPortalItemCompleted, this, [this](bool success)
{
m_busy = false;

if (!success)
return;

setStatusText("Successfully added item.");
m_item->load();
});
//! [PortalUser addPortalItemCompleted]
void AddItemsToPortal::connectUserSignals()
{
if (!m_user)
return;

connect(m_user, &PortalUser::deletePortalItemCompleted, this, [this](bool success)
connect(m_user, &PortalUser::errorOccurred, this, [this](const Error& error)
{
m_busy = false;

if (!success)
return;

m_itemDeleted = true;
emit itemDeletedChanged();
emit portalItemIdChanged();
emit portalItemTitleChanged();
emit portalItemTypeNameChanged();
setStatusText("Successfully deleted item " + m_item->itemId());
setStatusText(QString(error.message() + ": " + error.additionalMessage()));
});
}


void AddItemsToPortal::setStatusText(const QString &statusText)
{
m_statusText = statusText;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class AddItemsToPortal : public QQuickItem
void busyChanged();

private:
void fetchItem();
bool portalLoaded() const;
bool portalItemLoaded() const;
QString portalItemId() const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CONFIG += c++17
# additional modules are pulled in via arcgisruntime.pri
QT += opengl qml quick

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

# path of the toolkit relative to the sample
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ Portals allow you to share and publish data with others. For example, you may cr
1. A `Portal` is created with a `Credential` using `OAuthModeUser`. The `Portal` instance is loaded and the OAuth sign in page is displayed. The user must now provide credentials.
2. Once the sign-in process is complete, a `PortalItem` of type `CSV` is created using this `Portal` instance.
3. When the portal is successfully loaded, the `PortalUser` object is obtained from the `Portal`.
5. When the "Add Item" button is clicked, the item is added via the `PortalUser`'s `addPortalItemWithUrl` method. The `PortalItem` and the local URL of the CSV file are supplied as parameters.
5. When the "Add Item" button is clicked, the item is added via the `PortalUser`'s `addPortalItemWithUrlAsync` method. The `PortalItem` and the local URL of the CSV file are supplied as parameters.
6. When the item has been successfully added, it is loaded in order to retrieve online properties such as the `itemId`.'
7. When the "Delete Item" button is clicked, the item is passed as a parameter for the portalUser's `deleteItem` method.
7. When the "Delete Item" button is clicked, the item is passed as a parameter for the portalUser's `deleteItemAsync` method.

## Relevant API

* Portal
* PortalItem
* PortalUser::addPortalItemWithUrl
* PortalUser::deleteItem
* PortalUser::addPortalItemWithUrlAsync
* PortalUser::deleteItemAsync

## Tags

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#include "PortalTypes.h"
#include "Error.h"

#include <QFuture>

using namespace Esri::ArcGISRuntime;

IntegratedWindowsAuthentication::IntegratedWindowsAuthentication(QObject* parent /* = nullptr */):
Expand Down Expand Up @@ -76,7 +78,6 @@ void IntegratedWindowsAuthentication::searchIwaSecurePortal(const QString& url)
m_iwaSecurePortal = new Portal(url, true, this);

connect(m_iwaSecurePortal, &Portal::doneLoading, this, &IntegratedWindowsAuthentication::securePortalDoneLoading);
connect(m_iwaSecurePortal, &Portal::findItemsCompleted, this, &IntegratedWindowsAuthentication::searchItemsCompleted);

m_loadingIndicator = true;
emit isLoadingChanged();
Expand Down Expand Up @@ -124,7 +125,11 @@ void IntegratedWindowsAuthentication::securePortalDoneLoading(const Error& loadE
return;
}

m_iwaSecurePortal->findItems(*query);
m_iwaSecurePortal->findItemsAsync(*query).then(
[this](PortalQueryResultSetForItems* result)
{
searchItemsCompleted(result);
});
}

void IntegratedWindowsAuthentication::searchItemsCompleted(PortalQueryResultSetForItems* result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QT += opengl qml quick
TEMPLATE = app
TARGET = IntegratedWindowsAuthentication

ARCGIS_RUNTIME_VERSION = 200.3.0
ARCGIS_RUNTIME_VERSION = 200.4.0
include($$PWD/arcgisruntime.pri)

# path of the toolkit relative to the sample
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ bool PortalUserInfo::loaded()
return false;
}

bool PortalUserInfo::loginDismissed()
{
if (m_portal)
return m_portal->loadError().message() == "Code unauthorized." || m_portal->loadError().message() == "User canceled error.";

return false;
}

QString PortalUserInfo::fullName() const
{
if (m_user)
Expand Down Expand Up @@ -207,8 +215,6 @@ void PortalUserInfo::onPortalLoadStatusChanged(LoadStatus loadStatus)
case LoadStatus::Loading:
break;
case LoadStatus::FailedToLoad:
if (m_portal)
m_portal->retryLoad();
break;
case LoadStatus::NotLoaded:
break;
Expand All @@ -219,4 +225,5 @@ void PortalUserInfo::onPortalLoadStatusChanged(LoadStatus loadStatus)
}

emit loadedChanged();
emit isLoginDismissed();
}
Loading
Loading