Debian Codegraph @

tests/mocks/Lomiri/Indicators/fakeindicatorsmodeldata.js

raw
1 /*
2 * Copyright (C) 2017 Canonical Ltd.
3 * Copyright (C) 2019 UBports Foundation
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 3.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 var usageScenario = (typeof shell != 'undefined') ? shell.usageScenario : "desktop";
19
20 var fakeMenuData = {
21 "fake-indicator-messages": [
22 {
23 "rowData": {
24 "action": "indicator._header",
25 "actionState": {
26 "icons": [ "image://theme/messages-new" ],
27 "label": "",
28 "title": "Messages (F)",
29 "visible": true
30 },
31 "icon": "",
32 "isCheck": false,
33 "isRadio": false,
34 "isSeparator": false,
35 "isToggled": false,
36 "label": "",
37 "sensitive": true,
38 "type": "com.canonical.indicator.root"
39 },
40 "submenu": [
41 {
42 "rowData": {
43 "label": "There's an updated system image.",
44 "sensitive": true,
45 "isSeparator": false,
46 "icon": "image://theme/preferences-system-updates-symbolic",
47 "type": "com.canonical.indicator.messages.messageitem",
48 "ext": {
49 "icon": "image://theme/preferences-system-updates-symbolic",
50 "xAyatanaAppIcon": "image://theme/system-settings",
51 "xAyatanaMessageActions": null,
52 "xAyatanaText": "Tap to open the system updater.",
53 "xAyatanaTime": ((new Date).getTime() - 350 * 1000) * 1000,
54 },
55 "action": "indicator.lomiri-system-settings",
56 "actionState": {},
57 "isCheck": false,
58 "isRadio": false,
59 "isToggled": false,
60 }
61 },
62 {
63 "rowData": {
64 "action": "indicator.telephony-service-sms.msg.MSG_ID",
65 "actionState": {},
66 "ext": {},
67 "icon": Qt.resolvedUrl("../../../../../tests/graphics/avatars/[email protected]"),
68 "type": "com.canonical.indicator.messages.messageitem",
69 "ext": {
70 "icon": Qt.resolvedUrl("../../../../../tests/graphics/avatars/[email protected]"),
71 "xAyatanaAppIcon": Qt.resolvedUrl("../../../../../tests/graphics/applicationIcons/[email protected]"),
72 "xAyatanaMessageActions": [ { "parameter-type": "s" } ],
73 "xAyatanaText": "This is a message sent to an awesome Lomiri phone.",
74 "xAyatanaTime": ((new Date).getTime() - 35 * 1000) * 1000
75 },
76 "isCheck": false,
77 "isRadio": false,
78 "isSeparator": false,
79 "isToggled": false,
80 "label": "+44391234567 - [SIM 1]",
81 "sensitive": true
82 }
83 },
84 {
85 "rowData": {
86 "label": "+39441234567 - [SIM 2]",
87 "sensitive": true,
88 "isSeparator": false,
89 "icon": "image://theme/missed-call",
90 "type": "com.canonical.indicator.messages.messageitem",
91 "ext": {
92 "xAyatanaMessageActions": [ { "parameter-type": "_s" } ],
93 "xAyatanaText": "1 Missed call.",
94 "xAyatanaTime": ((new Date).getTime() - 350 * 1000) * 1000,
95 },
96 "action": "indicator.telephony-service-missed-call.call.CALL_ID",
97 "actionState": {},
98 "isCheck": false,
99 "isRadio": false,
100 "isToggled": false,
101 }
102 },
103 {
104 "rowData": {
105 "action": "indicator.remove-all",
106 "actionState": {},
107 "ext": {},
108 "icon": "",
109 "isCheck": false,
110 "isRadio": false,
111 "isSeparator": false,
112 "isToggled": false,
113 "label": "Clear All",
114 "sensitive": true,
115 "type": "com.canonical.indicator.button"
116 }
117 },
118 ]
119 }
120 ],
121
122 "fake-ayatana-indicator-session": [
123 {
124 "rowData": {
125 "action": "indicator._header",
126 "actionState": {
127 "icons": [],
128 "label": "",
129 "title": "Session (F)",
130 "visible": usageScenario == "desktop"
131 },
132 "icon": "",
133 "isCheck": false,
134 "isRadio": false,
135 "isSeparator": false,
136 "isToggled": false,
137 "label": "",
138 "sensitive": true,
139 "type": "com.canonical.indicator.root"
140 },
141 "submenu": [
142 {
143 "rowData": {
144 "action": "indicator.about",
145 "actionState": {},
146 "ext": {},
147 "icon": "",
148 "isCheck": false,
149 "isRadio": false,
150 "isSeparator": false,
151 "isToggled": false,
152 "label": "About this " + usageScenario,
153 "sensitive": true,
154 "type": ""
155 }
156 },
157 {
158 "rowData": {
159 "action": "indicator.help",
160 "actionState": {},
161 "ext": {},
162 "icon": "",
163 "isCheck": false,
164 "isRadio": false,
165 "isSeparator": false,
166 "isToggled": false,
167 "label": "Lomiri Help",
168 "sensitive": true,
169 "type": ""
170 }
171 },
172 {
173 "rowData": {
174 "action": "",
175 "actionState": {},
176 "ext": {},
177 "icon": "",
178 "isCheck": false,
179 "isRadio": false,
180 "isSeparator": true,
181 "isToggled": false,
182 "label": "",
183 "sensitive": true,
184 "type": ""
185 }
186 },
187 {
188 "rowData": {
189 "action": "indicator.settings",
190 "actionState": {},
191 "ext": {},
192 "icon": "",
193 "isCheck": false,
194 "isRadio": false,
195 "isSeparator": false,
196 "isToggled": false,
197 "label": "System Settings...",
198 "sensitive": true,
199 "type": ""
200 }
201 },
202 {
203 "rowData": {
204 "action": "",
205 "actionState": {},
206 "ext": {},
207 "icon": "",
208 "isCheck": false,
209 "isRadio": false,
210 "isSeparator": true,
211 "isToggled": false,
212 "label": "",
213 "sensitive": true,
214 "type": ""
215 }
216 },
217 {
218 "rowData": {
219 "action": "indicator.switch-to-screensaver",
220 "actionState": {},
221 "ext": {},
222 "icon": "",
223 "isCheck": false,
224 "isRadio": false,
225 "isSeparator": false,
226 "isToggled": false,
227 "label": "Lock",
228 "sensitive": true,
229 "type": ""
230 }
231 },
232 {
233 "rowData": {
234 "action": "indicator.switch-to-guest",
235 "actionState": {},
236 "ext": {},
237 "icon": "",
238 "isCheck": false,
239 "isRadio": false,
240 "isSeparator": false,
241 "isToggled": false,
242 "label": "Guest Session",
243 "sensitive": true,
244 "type": "org.ayatana.indicator.guest-menu-item"
245 }
246 },
247 {
248 "rowData": {
249 "action": "indicator.switch-to-user",
250 "actionState": {},
251 "ext": {},
252 "icon": "",
253 "isCheck": false,
254 "isRadio": true,
255 "isSeparator": false,
256 "isToggled": false,
257 "label": "Marco",
258 "sensitive": true,
259 "type": "org.ayatana.indicator.user-menu-item"
260 }
261 },
262 {
263 "rowData": {
264 "action": "indicator.switch-to-user",
265 "actionState": {},
266 "ext": {},
267 "icon": "",
268 "isCheck": false,
269 "isRadio": true,
270 "isSeparator": false,
271 "isToggled": false,
272 "label": "Lomiri",
273 "sensitive": true,
274 "type": "org.ayatana.indicator.user-menu-item"
275 }
276 },
277 {
278 "rowData": {
279 "action": "",
280 "actionState": {},
281 "ext": {},
282 "icon": "",
283 "isCheck": false,
284 "isRadio": false,
285 "isSeparator": true,
286 "isToggled": false,
287 "label": "",
288 "sensitive": true,
289 "type": ""
290 }
291 },
292 {
293 "rowData": {
294 "action": "indicator.logout",
295 "actionState": {},
296 "ext": {},
297 "icon": "",
298 "isCheck": false,
299 "isRadio": false,
300 "isSeparator": false,
301 "isToggled": false,
302 "label": "Logout...",
303 "sensitive": true,
304 "type": ""
305 }
306 },
307 {
308 "rowData": {
309 "action": "",
310 "actionState": {},
311 "ext": {},
312 "icon": "",
313 "isCheck": false,
314 "isRadio": false,
315 "isSeparator": true,
316 "isToggled": false,
317 "label": "",
318 "sensitive": true,
319 "type": ""
320 }
321 },
322 {
323 "rowData": {
324 "action": "indicator.suspend",
325 "actionState": {},
326 "ext": {},
327 "icon": "",
328 "isCheck": false,
329 "isRadio": false,
330 "isSeparator": false,
331 "isToggled": false,
332 "label": "Suspend",
333 "sensitive": true,
334 "type": ""
335 }
336 },
337 {
338 "rowData": {
339 "action": "indicator.power-off",
340 "actionState": {},
341 "ext": {},
342 "icon": "",
343 "isCheck": false,
344 "isRadio": false,
345 "isSeparator": false,
346 "isToggled": false,
347 "label": "Power off...",
348 "sensitive": true,
349 "type": ""
350 }
351 }
352 ]
353 }
354 ],
355
356 "fake-indicator-power": [
357 {
358 "rowData": {
359 "action": "indicator._header",
360 "actionState": {
361 "icons": [ "image://theme/battery-020,unity-battery-020" ],
362 "label": "",
363 "title": "Battery (F)",
364 "visible": true
365 },
366 "icon": "",
367 "isCheck": false,
368 "isRadio": false,
369 "isSeparator": false,
370 "isToggled": false,
371 "label": "",
372 "sensitive": true,
373 "type": "com.canonical.indicator.root"
374 },
375 "submenu": [
376 {
377 "rowData": {
378 "label": "Charge Level",
379 "sensitive": false,
380 "isSeparator": false,
381 "icon": "",
382 "type": "com.canonical.indicator.progress",
383 "ext": {},
384 "action": "indicator.battery-level",
385 "actionState": "100",
386 "isCheck": false,
387 "isRadio": false,
388 "isToggled": false
389 }
390 },
391 {
392
393 "rowData": {
394 "label": "",
395 "sensitive": true,
396 "isSeparator": true,
397 "icon": "",
398 "type": "",
399 "ext": {},
400 "action": "",
401 "actionState": "",
402 "isCheck": false,
403 "isRadio": false,
404 "isToggled": false
405 }
406 },
407 {
408
409 "rowData": {
410 "label": "",
411 "sensitive": true,
412 "isSeparator": false,
413 "icon": "",
414 "type": "com.canonical.lomiri.slider",
415 "ext": {
416 "maxIcon": "image://theme/display-brightness-max",
417 "maxValue": "1",
418 "minIcon": "image://theme/display-brightness-min",
419 "minValue": "0",
420 },
421 "action": "indicator.brightness",
422 "actionState": "0.212244897959184",
423 "isCheck": false,
424 "isRadio": false,
425 "isToggled": false
426 }
427 },
428 {
429
430 "rowData": {
431 "label": "Auto-brightness",
432 "sensitive": true,
433 "isSeparator": false,
434 "icon": "",
435 "type": "com.canonical.indicator.switch",
436 "ext": {},
437 "action": "indicator.auto-brightness",
438 "actionState": false,
439 "isCheck": true,
440 "isRadio": false,
441 "isToggled": false
442 }
443 },
444 {
445 "rowData": {
446 "action": "",
447 "actionState": {},
448 "ext": {},
449 "icon": "",
450 "isCheck": false,
451 "isRadio": false,
452 "isSeparator": true,
453 "isToggled": false,
454 "label": " ",
455 "sensitive": true,
456 "type": ""
457 }
458 },
459 {
460 "rowData": {
461 "action": "indicator.show-time",
462 "actionState": false,
463 "ext": {},
464 "icon": "",
465 "isCheck": true,
466 "isRadio": false,
467 "isSeparator": false,
468 "isToggled": false,
469 "label": "Show time on menubar",
470 "sensitive": true,
471 "type": ""
472 }
473 },
474 {
475 "rowData": {
476 "action": "indicator.show-percentage",
477 "actionState": false,
478 "ext": {},
479 "icon": "",
480 "isCheck": true,
481 "isRadio": false,
482 "isSeparator": false,
483 "isToggled": false,
484 "label": "Show percentage on menubar",
485 "sensitive": true,
486 "type": ""
487 }
488 },
489 {
490 "rowData": {
491 "action": "indicator.activate-settings",
492 "actionState": {},
493 "ext": {},
494 "icon": "",
495 "isCheck": false,
496 "isRadio": false,
497 "isSeparator": false,
498 "isToggled": false,
499 "label": "Power Settings...",
500 "sensitive": true,
501 "type": ""
502 }
503 }
504 ]
505 }
506 ],
507
508 "fake-indicator-sound": [
509 {
510 "rowData": {
511 "action": "indicator._header",
512 "actionState": {
513 "icons": [ "image://theme/audio-volume-high" ],
514 "label": "",
515 "title": "Sound (F)",
516 "visible": true
517 },
518 "icon": "",
519 "isCheck": false,
520 "isRadio": false,
521 "isSeparator": false,
522 "isToggled": false,
523 "label": "",
524 "sensitive": true,
525 "type": "com.canonical.indicator.root"
526 },
527 "submenu": [
528 {
529 "rowData": {
530 "action": "indicator.silent-mode",
531 "actionState": true,
532 "ext": {},
533 "icon": "",
534 "isCheck": true,
535 "isRadio": false,
536 "isSeparator": false,
537 "isToggled": false,
538 "label": "Silent Mode",
539 "sensitive": true,
540 "type": "com.canonical.indicator.switch"
541 }
542 },
543 {
544 "rowData": {
545 "action": "indicator.volume",
546 "actionState": 0.35,
547 "ext": {
548 "maxIcon": "image://theme/audio-volume-high-panel",
549 "maxValue": 1,
550 "minIcon": "image://theme/audio-volume-low-zero-panel",
551 "minValue": 0,
552 "xAyatanaSyncAction": "indicator.volume-sync"
553 },
554 "icon": "",
555 "isCheck": false,
556 "isRadio": true,
557 "isSeparator": false,
558 "isToggled": false,
559 "label": "Volume",
560 "sensitive": true,
561 "type": "com.canonical.lomiri.slider"
562 }
563 },
564 {
565 "rowData": {
566 "action": "",
567 "actionState": {},
568 "ext": {},
569 "icon": "",
570 "isCheck": false,
571 "isRadio": false,
572 "isSeparator": true,
573 "isToggled": false,
574 "label": "",
575 "sensitive": true,
576 "type": ""
577 }
578 },
579 {
580 "rowData": {
581 "action": "indicator.mediaplayer-app.desktop",
582 "actionState": {
583 "running": true,
584 "state": "Stopped"
585 },
586 "ext": {},
587 "icon": "image://theme/mediaplayer-app",
588 "isCheck": false,
589 "isRadio": false,
590 "isSeparator": false,
591 "isToggled": false,
592 "label": "Media Player",
593 "sensitive": false,
594 "type": "com.canonical.lomiri.media-player"
595 }
596 },
597 {
598 "rowData": {
599 "actionState": {},
600 "ext": {
601 "action": ""
602 },
603 "icon": "",
604 "isCheck": false,
605 "isRadio": false,
606 "isSeparator": false,
607 "isToggled": false,
608 "label": "",
609 "sensitive": true,
610 "type": "com.canonical.lomiri.playback-item"
611 }
612 },
613 {
614 "rowData": {
615 "action": "indicator.phone-settings",
616 "actionState": {},
617 "ext": {},
618 "icon": "",
619 "isCheck": false,
620 "isRadio": false,
621 "isSeparator": false,
622 "isToggled": false,
623 "label": "Sound Settings…",
624 "sensitive": true,
625 "type": ""
626 }
627 }
628 ]
629 }
630 ],
631
632 "fake-indicator-datetime": [
633 {
634 "rowData": {
635 "action": "indicator._header",
636 "actionState": {
637 "icons": [],
638 "label": "16.10",
639 "title": "Upcoming Events (F)",
640 "visible": true
641 },
642 "icon": "",
643 "isCheck": false,
644 "isRadio": false,
645 "isSeparator": false,
646 "isToggled": false,
647 "label": "",
648 "sensitive": true,
649 "type": "com.canonical.indicator.root"
650 },
651 "submenu": [
652 {
653 "rowData": {
654 "action": "indicator.phone.open-calendar-app",
655 "actionState": {},
656 "ext": {},
657 "icon": "image://theme/calendar",
658 "isCheck": false,
659 "isRadio": false,
660 "isSeparator": false,
661 "isToggled": false,
662 "label": "Saturday, 31 December 2016",
663 "sensitive": true,
664 "type": ""
665 }
666 },
667 {
668 "rowData": {
669 "action": "indicator.calendar",
670 "actionState": {
671 "appointment-days": [10],
672 "calendar-day": (new Date).getTime() / 1000,
673 "show-week-numbers": false,
674 },
675 "ext": {},
676 "icon": "image://theme/calendar",
677 "isCheck": false,
678 "isRadio": true,
679 "isSeparator": false,
680 "isToggled": false,
681 "label": "[calendar]",
682 "sensitive": true,
683 "type": "com.canonical.indicator.calendar"
684 }
685 },
686 {
687 "rowData": {
688 "action": "",
689 "actionState": {},
690 "ext": {},
691 "icon": "fake-indicator-datetime",
692 "isCheck": false,
693 "isRadio": false,
694 "isSeparator": true,
695 "isToggled": false,
696 "label": "",
697 "sensitive": true,
698 "type": ""
699 }
700 },
701 {
702 "rowData": {
703 "action": "indicator.phone.open-alarm-app",
704 "actionState": {},
705 "ext": {},
706 "icon": "image://theme/clock",
707 "isCheck": false,
708 "isRadio": false,
709 "isSeparator": false,
710 "isToggled": false,
711 "label": "Clock",
712 "sensitive": true,
713 "type": ""
714 }
715 },
716 {
717 "rowData": {
718 "action": "indicator.phone.open-appointment",
719 "actionState": {},
720 "ext": {
721 "xAyatanaTime": (new Date).getTime() / 1000 + 55 * 60
722 },
723 "icon": "image://theme/alarm-clock",
724 "isCheck": false,
725 "isRadio": false,
726 "isSeparator": false,
727 "isToggled": false,
728 "label": "Wake up!",
729 "sensitive": true,
730 "type": "com.canonical.indicator.alarm"
731 }
732 },
733 {
734 "rowData": {
735 "action": "indicator.phone.open-appointment",
736 "actionState": {},
737 "ext": {
738 "xAyatanaColor": Qt.rgba(32,74,135,1),
739 "xAyatanaTime": (new Date).getTime() / 1000 + 35000
740 },
741 "icon": "",
742 "isCheck": false,
743 "isRadio": false,
744 "isSeparator": false,
745 "isToggled": false,
746 "label": "Finish Indicator mocks",
747 "sensitive": true,
748 "type": "com.canonical.indicator.appointment"
749 }
750 },
751 {
752 "rowData": {
753 "action": "indicator.phone.open-appointment",
754 "actionState": {},
755 "ext": {
756 "xAyatanaColor": Qt.rgba(32,74,135,1),
757 "xAyatanaTime": (new Date).getTime() / 1000 + 50474
758 },
759 "icon": "",
760 "isCheck": false,
761 "isRadio": false,
762 "isSeparator": false,
763 "isToggled": false,
764 "label": "Implement Desktop version",
765 "sensitive": true,
766 "type": "com.canonical.indicator.appointment"
767 }
768 },
769 {
770 "rowData": {
771 "action": "indicator.phone.open-appointment",
772 "actionState": {},
773 "ext": {
774 "xAyatanaColor": Qt.rgba(32,74,135,1),
775 "xAyatanaTime": (new Date).getTime() / 1000 + 385000
776 },
777 "icon": "",
778 "isCheck": false,
779 "isRadio": false,
780 "isSeparator": false,
781 "isToggled": false,
782 "label": "Lomiri drinks event",
783 "sensitive": true,
784 "type": "com.canonical.indicator.appointment"
785 }
786 },
787 {
788 "rowData": {
789 "action": "indicator.phone.open-appointment",
790 "actionState": {},
791 "ext": {
792 "xAyatanaColor": Qt.rgba(32,74,135,1),
793 "xAyatanaTime": (new Date).getTime() / 1000 + 3500050
794 },
795 "icon": "",
796 "isCheck": false,
797 "isRadio": false,
798 "isSeparator": false,
799 "isToggled": false,
800 "label": "Land lomiri",
801 "sensitive": true,
802 "type": "com.canonical.indicator.appointment"
803 }
804 },
805 {
806 "rowData": {
807 "action": "",
808 "actionState": {},
809 "ext": {},
810 "icon": "",
811 "isCheck": false,
812 "isRadio": false,
813 "isSeparator": true,
814 "isToggled": false,
815 "label": "",
816 "sensitive": true,
817 "type": ""
818 }
819 },
820 {
821 "rowData": {
822 "action": "indicator.phone.open-settings-app",
823 "actionState": {},
824 "ext": {},
825 "icon": "",
826 "isCheck": false,
827 "isRadio": false,
828 "isSeparator": false,
829 "isToggled": false,
830 "label": "Date and Time settings…",
831 "sensitive": true,
832 "type": ""
833 }
834 }
835 ]
836 }
837 ],
838
839 "fake-indicator-files": [
840 {
841 "rowData": {
842 "action": "indicator._header",
843 "actionState": {
844 "icons": [],
845 "label": "Files",
846 "title": "Files",
847 "visible": true
848 },
849 "icon": "",
850 "isCheck": false,
851 "isRadio": false,
852 "isSeparator": false,
853 "isToggled": false,
854 "label": "",
855 "sensitive": true,
856 "type": "com.canonical.indicator.root"
857 },
858 "submenu": [
859 {
860 "rowData": {
861 "action": "indicator.pause-all",
862 "actionState": {},
863 "ext": {
864 "xAyatanaExtraLabel": "Pause all"
865 },
866 "icon": "",
867 "isCheck": false,
868 "isRadio": false,
869 "isSeparator": false,
870 "isToggled": false,
871 "label": "",
872 "sensitive": true,
873 "type": "com.canonical.indicator.button-section"
874 }
875 },
876 {
877 "rowData": {
878 "action": "indicator.activate-transfer",
879 "actionState": {},
880 "ext": {
881 "xAyatanaUid": 1003
882 },
883 "icon": "image://theme/webbrowser-app-symbolic",
884 "isCheck": false,
885 "isRadio": false,
886 "isSeparator": false,
887 "isToggled": false,
888 "label": "Lomiri daily.iso",
889 "sensitive": true,
890 "type": "com.canonical.indicator.transfer"
891 }
892 },
893 {
894 "rowData": {
895 "action": "",
896 "actionState": {},
897 "ext": {},
898 "icon": "",
899 "isCheck": false,
900 "isRadio": false,
901 "isSeparator": true,
902 "isToggled": false,
903 "label": "",
904 "sensitive": true,
905 "type": ""
906 }
907 },
908 {
909 "rowData": {
910 "action": "indicator.clear-all",
911 "actionState": {},
912 "ext": {
913 "xAyatanaExtraLabel": "Clear all"
914 },
915 "icon": "",
916 "isCheck": false,
917 "isRadio": false,
918 "isSeparator": false,
919 "isToggled": false,
920 "label": "Successful Transfers",
921 "sensitive": true,
922 "type": "com.canonical.indicator.button-section"
923 }
924 },
925 {
926 "rowData": {
927 "action": "indicator.activate-transfer",
928 "actionState": {},
929 "ext": {
930 "xAyatanaUid": 1002
931 },
932 "icon": "image://theme/webbrowser-app-symbolic",
933 "isCheck": false,
934 "isRadio": false,
935 "isSeparator": false,
936 "isToggled": false,
937 "label": "Lomiri Guide.pdf",
938 "sensitive": true,
939 "type": "com.canonical.indicator.transfer"
940 }
941 },
942 {
943 "rowData": {
944 "action": "indicator.activate-transfer",
945 "actionState": {},
946 "ext": {
947 "xAyatanaUid": 1001
948 },
949 "icon": "image://theme/webbrowser-app-symbolic",
950 "isCheck": false,
951 "isRadio": false,
952 "isSeparator": false,
953 "isToggled": false,
954 "label": "Lomiri Hacking.pdf",
955 "sensitive": true,
956 "type": "com.canonical.indicator.transfer"
957 }
958 }
959 ]
960 }
961 ],
962
963 "fake-indicator-network": [
964 {
965 "rowData": {
966 "action": "indicator._header",
967 "actionState": {
968 "icons": [],
969 "label": "",
970 "title": "Network",
971 "visible": true
972 },
973 "icon": "",
974 "isCheck": false,
975 "isRadio": false,
976 "isSeparator": false,
977 "isToggled": false,
978 "label": "",
979 "sensitive": true,
980 "type": "com.canonical.indicator.root"
981 },
982 "submenu": [
983 {
984 "rowData": {
985 "action": "indicator.airplane.enabled",
986 "actionState": false,
987 "ext": {},
988 "icon": "",
989 "isCheck": true,
990 "isRadio": false,
991 "isSeparator": false,
992 "isToggled": false,
993 "label": "Flight Mode",
994 "sensitive": true,
995 "type": "com.canonical.indicator.switch"
996 }
997 },
998 /* Anything to see here, since no fake modem actions are implemented
999 {
1000 "rowData": {
1001 "actionState": false,
1002 "ext": {},
1003 "icon": "",
1004 "isCheck": false,
1005 "isRadio": false,
1006 "isSeparator": true,
1007 "isToggled": false,
1008 "label": "",
1009 "sensitive": true,
1010 "type": ""
1011 }
1012 },
1013 {
1014 "rowData": {
1015 "actionState": false,
1016 "ext": {
1017 "xLomiriModemConnectivityIconAction": "indicator.modem.1::connectivity-icon",
1018 "xLomiriModemLockedAction": "indicator.modem.1::locked",
1019 "xLomiriModemRoamingAction": "indicator.modem.1::roaming",
1020 "xLomiriModemSimIdentifierLabelAction": "indicator.modem.1::sim-identifier-label",
1021 "xLomiriModemStatusIconAction": "indicator.modem.1::status-icon",
1022 "xLomiriModemStatusLabelAction": "indicator.modem.1::status-label"
1023 },
1024 "icon": "",
1025 "isCheck": false,
1026 "isRadio": false,
1027 "isSeparator": false,
1028 "isToggled": false,
1029 "label": "",
1030 "sensitive": true,
1031 "type": "com.lomiri.indicator.network.modeminfoitem",
1032 "visible": false
1033 }
1034 },
1035 */
1036 {
1037 "rowData": {
1038 "action": "indicator.wifi.enable",
1039 "actionState": true,
1040 "ext": {},
1041 "icon": "",
1042 "isCheck": true,
1043 "isRadio": false,
1044 "isSeparator": false,
1045 "isToggled": true,
1046 "label": "Wi-Fi",
1047 "sensitive": true,
1048 "type": "com.canonical.indicator.switch"
1049 }
1050 },
1051 {
1052 "rowData": {
1053 "action": "",
1054 "actionState": {},
1055 "ext": {},
1056 "icon": "",
1057 "isCheck": false,
1058 "isRadio": false,
1059 "isSeparator": true,
1060 "isToggled": false,
1061 "label": "",
1062 "sensitive": true,
1063 "type": ""
1064 }
1065 },
1066 {
1067 "rowData": {
1068 "action": "indicator.accesspoint.1",
1069 "actionState": true,
1070 "ext": {
1071 "xAyatanaWifiApIsAdhoc": 0,
1072 "xAyatanaWifiApIsSecure": 1,
1073 "xAyatanaWifiApStrengthAction": "indicator.accesspoint.1::strength"
1074 },
1075 "icon": "",
1076 "isCheck": true,
1077 "isRadio": false,
1078 "isSeparator": false,
1079 "isToggled": true,
1080 "label": "Canonical",
1081 "sensitive": true,
1082 "type": "lomiri.widgets.systemsettings.tablet.accesspoint"
1083 }
1084 },
1085 {
1086 "rowData": {
1087 "action": "indicator.accesspoint.2",
1088 "actionState": false,
1089 "ext": {
1090 "xAyatanaWifiApIsAdhoc": 0,
1091 "xAyatanaWifiApIsSecure": 1,
1092 "xAyatanaWifiApStrengthAction": "indicator.accesspoint.2::strength"
1093 },
1094 "icon": "",
1095 "isCheck": true,
1096 "isRadio": false,
1097 "isSeparator": false,
1098 "isToggled": false,
1099 "label": "Lomiri",
1100 "sensitive": true,
1101 "type": "lomiri.widgets.systemsettings.tablet.accesspoint"
1102 }
1103 },
1104 {
1105 "rowData": {
1106 "action": "indicator.accesspoint.3",
1107 "actionState": false,
1108 "ext": {
1109 "xAyatanaWifiApIsAdhoc": 0,
1110 "xAyatanaWifiApIsSecure": 0,
1111 "xAyatanaWifiApStrengthAction": "indicator.accesspoint.3::strength"
1112 },
1113 "icon": "",
1114 "isCheck": true,
1115 "isRadio": false,
1116 "isSeparator": false,
1117 "isToggled": false,
1118 "label": "Linux",
1119 "sensitive": true,
1120 "type": "lomiri.widgets.systemsettings.tablet.accesspoint"
1121 }
1122 },
1123 {
1124 "rowData": {
1125 "action": "indicator.accesspoint.4",
1126 "actionState": false,
1127 "ext": {
1128 "xAyatanaWifiApIsAdhoc": 0,
1129 "xAyatanaWifiApIsSecure": 0,
1130 "xAyatanaWifiApStrengthAction": "indicator.accesspoint.4::strength"
1131 },
1132 "icon": "",
1133 "isCheck": true,
1134 "isRadio": false,
1135 "isSeparator": false,
1136 "isToggled": false,
1137 "label": "for Human Beings",
1138 "sensitive": true,
1139 "type": "lomiri.widgets.systemsettings.tablet.accesspoint"
1140 }
1141 },
1142 {
1143 "rowData": {
1144 "action": "indicator.wifi.settings",
1145 "actionState": {},
1146 "ext": {},
1147 "icon": "",
1148 "isCheck": false,
1149 "isRadio": false,
1150 "isSeparator": false,
1151 "isToggled": false,
1152 "label": "Wi-Fi settings…",
1153 "sensitive": true,
1154 "type": ""
1155 }
1156 }
1157 ]
1158 }
1159 ],
1160
1161 "fake-indicator-bluetooth": [
1162 {
1163 "rowData": {
1164 "action": "indicator._header",
1165 "actionState": {
1166 "icons": [],
1167 "label": "",
1168 "title": "Network",
1169 "visible": true
1170 },
1171 "icon": "",
1172 "isCheck": false,
1173 "isRadio": false,
1174 "isSeparator": false,
1175 "isToggled": false,
1176 "label": "",
1177 "sensitive": true,
1178 "type": "com.canonical.indicator.root"
1179 },
1180 "submenu": [
1181 {
1182 "rowData": {
1183 "action": "indicator.bluetooth.enable",
1184 "actionState": true,
1185 "ext": {},
1186 "icon": "",
1187 "isCheck": true,
1188 "isRadio": false,
1189 "isSeparator": false,
1190 "isToggled": true,
1191 "label": "Bluetooth",
1192 "sensitive": true,
1193 "type": "com.canonical.indicator.switch"
1194 }
1195 },
1196 {
1197 "rowData": {
1198 "action": "indicator.bluetooth.settings",
1199 "actionState": {},
1200 "ext": {},
1201 "icon": "",
1202 "isCheck": false,
1203 "isRadio": false,
1204 "isSeparator": false,
1205 "isToggled": false,
1206 "label": "Bluetooth settings…",
1207 "sensitive": true,
1208 "type": ""
1209 }
1210 }
1211 ]
1212 }
1213 ],
1214
1215 "ayatana-indicator-keyboard": [
1216 {
1217 "rowData": {
1218 "action": "indicator.indicator",
1219 "actionState": {
1220 "icons": [],
1221 "label": "",
1222 "title": "English (USA, QWERTY)",
1223 "visible": true
1224 },
1225 "icon": "",
1226 "isCheck": false,
1227 "isRadio": false,
1228 "isSeparator": false,
1229 "isToggled": false,
1230 "label": "",
1231 "sensitive": true,
1232 "type": "com.canonical.indicator.root"
1233 },
1234 "submenu": [
1235 {
1236 "rowData": {
1237 "label": "České (QWERTY)",
1238 "sensitive": true,
1239 "isSeparator": false,
1240 "icon": "image://theme/indicator-keyboard-Cs",
1241 "type": "",
1242 "ext": {},
1243 "action": "indicator.current",
1244 "actionState": 0,
1245 "isCheck": false,
1246 "isRadio": true,
1247 "isToggled": false
1248 }
1249 },
1250 {
1251 "rowData": {
1252 "label": "Italiana (QWERTY)",
1253 "sensitive": true,
1254 "isSeparator": false,
1255 "icon": "image://theme/indicator-keyboard-It",
1256 "type": "",
1257 "ext": {},
1258 "action": "indicator.current",
1259 "actionState": 0,
1260 "isCheck": false,
1261 "isRadio": true,
1262 "isToggled": false
1263 }
1264 },
1265 {
1266 "rowData": {
1267 "label": "English (USA)",
1268 "sensitive": true,
1269 "isSeparator": false,
1270 "icon": "image://theme/indicator-keyboard-En",
1271 "type": "",
1272 "ext": {},
1273 "action": "indicator.current",
1274 "actionState": 0,
1275 "isCheck": false,
1276 "isRadio": true,
1277 "isToggled": true
1278 }
1279 },
1280 {
1281 "rowData": {
1282 "label": "",
1283 "sensitive": true,
1284 "isSeparator": true,
1285 "icon": "",
1286 "type": "",
1287 "ext": {},
1288 "action": "",
1289 "actionState": "",
1290 "isCheck": false,
1291 "isRadio": false,
1292 "isToggled": false
1293 }
1294 },
1295 {
1296 "rowData": {
1297 "label": "Character Map",
1298 "sensitive": true,
1299 "isSeparator": false,
1300 "icon": "",
1301 "type": "",
1302 "ext": {},
1303 "action": "indicator.map",
1304 "actionState": "",
1305 "isCheck": false,
1306 "isRadio": false,
1307 "isToggled": false
1308 }
1309 },
1310 {
1311 "rowData": {
1312 "label": "Keyboard layout",
1313 "sensitive": true,
1314 "isSeparator": false,
1315 "icon": "",
1316 "type": "",
1317 "ext": {},
1318 "action": "indicator.key-map.settings",
1319 "actionState": "",
1320 "isCheck": false,
1321 "isRadio": false,
1322 "isToggled": false
1323 }
1324 }
1325 ]
1326 }
1327 ],
1328 }