aboutsummaryrefslogtreecommitdiff
path: root/merchant-terminal/src/main/res/navigation/nav_graph.xml
blob: 606f2de1453195650cebf845a76b6575c319389c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?xml version="1.0" encoding="utf-8"?><!--
  ~ This file is part of GNU Taler
  ~ (C) 2020 Taler Systems S.A.
  ~
  ~ GNU Taler is free software; you can redistribute it and/or modify it under the
  ~ terms of the GNU General Public License as published by the Free Software
  ~ Foundation; either version 3, or (at your option) any later version.
  ~
  ~ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
  ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  ~ A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License along with
  ~ GNU Taler; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
  -->

<navigation xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/nav_graph"
    app:startDestination="@+id/nav_order"
    tools:ignore="UnusedNavigation">

    <fragment
        android:id="@+id/nav_order"
        android:name="net.taler.merchantpos.order.OrderFragment"
        android:label=""
        tools:layout="@layout/fragment_order">
        <action
            android:id="@+id/action_order_to_merchantSettings"
            app:destination="@+id/nav_settings"
            app:launchSingleTop="true"
            app:popUpTo="@+id/nav_graph"
            app:popUpToInclusive="true" />
        <action
            android:id="@+id/action_order_self"
            app:destination="@+id/nav_order"
            app:popUpTo="@+id/nav_graph" />
        <action
            android:id="@+id/action_order_to_processPayment"
            app:destination="@+id/processPayment" />
    </fragment>

    <fragment
        android:id="@+id/processPayment"
        android:name="net.taler.merchantpos.payment.ProcessPaymentFragment"
        android:label="@string/payment_process_label"
        tools:layout="@layout/fragment_process_payment">
        <action
            android:id="@+id/action_processPayment_to_paymentSuccess"
            app:destination="@+id/paymentSuccess"
            app:popUpTo="@id/nav_order" />
    </fragment>

    <fragment
        android:id="@+id/nav_history"
        android:name="net.taler.merchantpos.history.MerchantHistoryFragment"
        android:label="@string/history_label"
        tools:layout="@layout/fragment_merchant_history">
        <action
            android:id="@+id/action_nav_history_to_refundFragment"
            app:destination="@id/refundFragment" />
    </fragment>

    <fragment
        android:id="@+id/refundFragment"
        android:name="net.taler.merchantpos.history.RefundFragment"
        android:label="@string/history_refund"
        tools:layout="@layout/fragment_refund">
        <action
            android:id="@+id/action_refundFragment_to_refundUriFragment"
            app:destination="@id/refundUriFragment"
            app:popUpTo="@id/nav_history" />
    </fragment>

    <fragment
        android:id="@+id/refundUriFragment"
        android:name="net.taler.merchantpos.history.RefundUriFragment"
        android:label="@string/history_refund"
        tools:layout="@layout/fragment_refund_uri" />

    <fragment
        android:id="@+id/nav_settings"
        android:name="net.taler.merchantpos.config.MerchantConfigFragment"
        android:label="@string/config_label"
        tools:layout="@layout/fragment_merchant_config">
        <action
            android:id="@+id/action_settings_to_order"
            app:destination="@+id/nav_order"
            app:launchSingleTop="true"
            app:popUpTo="@+id/nav_graph"
            app:popUpToInclusive="true" />
    </fragment>

    <fragment
        android:id="@+id/configFetcher"
        android:name="net.taler.merchantpos.config.ConfigFetcherFragment"
        android:label="@string/config_fetching_label"
        tools:layout="@layout/fragment_config_fetcher">
        <action
            android:id="@+id/action_configFetcher_to_merchantSettings"
            app:destination="@+id/nav_settings"
            app:launchSingleTop="true"
            app:popUpTo="@+id/nav_graph"
            app:popUpToInclusive="true" />
        <action
            android:id="@+id/action_configFetcher_to_order"
            app:destination="@+id/nav_order"
            app:launchSingleTop="true"
            app:popUpTo="@+id/nav_graph"
            app:popUpToInclusive="true" />
    </fragment>

    <fragment
        android:id="@+id/paymentSuccess"
        android:name="net.taler.merchantpos.payment.PaymentSuccessFragment"
        android:label="@string/payment_received"
        tools:layout="@layout/fragment_payment_success" />

    <action
        android:id="@+id/action_global_order"
        app:destination="@+id/nav_order"
        app:launchSingleTop="true"
        app:popUpTo="@+id/nav_graph" />
    <action
        android:id="@+id/action_global_merchantHistory"
        app:destination="@+id/nav_history"
        app:launchSingleTop="true" />
    <action
        android:id="@+id/action_global_merchantSettings"
        app:destination="@+id/nav_settings"
        app:launchSingleTop="true" />
    <action
        android:id="@+id/action_global_configFetcher"
        app:destination="@+id/configFetcher"
        app:launchSingleTop="true" />

</navigation>