-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnfcurl_i.h
67 lines (51 loc) · 1.17 KB
/
nfcurl_i.h
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
#pragma once
#include <gui/gui.h>
#include <gui/scene_manager.h>
#include <gui/view_dispatcher.h>
#include <gui/modules/widget.h>
#include <gui/modules/popup.h>
#include <gui/modules/submenu.h>
#include <gui/modules/button_menu.h>
#include "views/text_input.h"
#include <furi/core/string.h>
#include <nfc/nfc_device.h>
#include <nfc/nfc_listener.h>
#include <notification/notification_messages.h>
typedef struct UrlPair {
FuriString* name;
char prefix;
FuriString* url;
} UrlPair;
struct NfcUrlApp {
SceneManager* scene_manager;
ViewDispatcher* view_dispatcher;
Gui* gui;
Widget* widget;
TextInput* text_input;
Popup* popup;
Submenu* submenu;
ButtonMenu* button_menu;
char prefix;
FuriString* url;
FuriString* name;
FuriString* path;
char* text_buffer;
UrlPair* urlpairs;
size_t urlpairs_count;
Nfc* nfc;
NfcDevice* device;
NfcListener* listener;
NotificationApp* notifications;
};
typedef struct NfcUrlApp NfcUrlApp;
typedef enum {
NfcUrlViewTextInput,
NfcUrlViewPopup,
NfcUrlViewSubmenu,
NfcUrlViewWidget,
NfcUrlViewButtonMenu
} NfcUrlView;
enum NfcUrlCustomEventType{
NfcUrlCustomEventTypeTextEditDone
};
void nfcurl_create_tag(NfcUrlApp* app);