|
4 | 4 | import sys |
5 | 5 | import inspect |
6 | 6 |
|
7 | | -class Wox(object): |
| 7 | +class Flow.Launcher(object): |
8 | 8 | """ |
9 | | - Wox python plugin base |
| 9 | + Flow.Launcher python plugin base |
10 | 10 | """ |
11 | 11 |
|
12 | 12 | def __init__(self): |
@@ -42,74 +42,74 @@ def debug(self,msg): |
42 | 42 | print("DEBUG:{}".format(msg)) |
43 | 43 | sys.exit() |
44 | 44 |
|
45 | | -class WoxAPI(object): |
| 45 | +class Flow.LauncherAPI(object): |
46 | 46 |
|
47 | 47 | @classmethod |
48 | 48 | def change_query(cls,query,requery = False): |
49 | 49 | """ |
50 | 50 | change wox query |
51 | 51 | """ |
52 | | - print(json.dumps({"method": "Wox.ChangeQuery","parameters":[query,requery]})) |
| 52 | + print(json.dumps({"method": "Flow.Launcher.ChangeQuery","parameters":[query,requery]})) |
53 | 53 |
|
54 | 54 | @classmethod |
55 | 55 | def shell_run(cls,cmd): |
56 | 56 | """ |
57 | 57 | run shell commands |
58 | 58 | """ |
59 | | - print(json.dumps({"method": "Wox.ShellRun","parameters":[cmd]})) |
| 59 | + print(json.dumps({"method": "Flow.Launcher.ShellRun","parameters":[cmd]})) |
60 | 60 |
|
61 | 61 | @classmethod |
62 | 62 | def close_app(cls): |
63 | 63 | """ |
64 | 64 | close wox |
65 | 65 | """ |
66 | | - print(json.dumps({"method": "Wox.CloseApp","parameters":[]})) |
| 66 | + print(json.dumps({"method": "Flow.Launcher.CloseApp","parameters":[]})) |
67 | 67 |
|
68 | 68 | @classmethod |
69 | 69 | def hide_app(cls): |
70 | 70 | """ |
71 | 71 | hide wox |
72 | 72 | """ |
73 | | - print(json.dumps({"method": "Wox.HideApp","parameters":[]})) |
| 73 | + print(json.dumps({"method": "Flow.Launcher.HideApp","parameters":[]})) |
74 | 74 |
|
75 | 75 | @classmethod |
76 | 76 | def show_app(cls): |
77 | 77 | """ |
78 | 78 | show wox |
79 | 79 | """ |
80 | | - print(json.dumps({"method": "Wox.ShowApp","parameters":[]})) |
| 80 | + print(json.dumps({"method": "Flow.Launcher.ShowApp","parameters":[]})) |
81 | 81 |
|
82 | 82 | @classmethod |
83 | 83 | def show_msg(cls,title,sub_title,ico_path=""): |
84 | 84 | """ |
85 | 85 | show messagebox |
86 | 86 | """ |
87 | | - print(json.dumps({"method": "Wox.ShowMsg","parameters":[title,sub_title,ico_path]})) |
| 87 | + print(json.dumps({"method": "Flow.Launcher.ShowMsg","parameters":[title,sub_title,ico_path]})) |
88 | 88 |
|
89 | 89 | @classmethod |
90 | 90 | def open_setting_dialog(cls): |
91 | 91 | """ |
92 | 92 | open setting dialog |
93 | 93 | """ |
94 | | - print(json.dumps({"method": "Wox.OpenSettingDialog","parameters":[]})) |
| 94 | + print(json.dumps({"method": "Flow.Launcher.OpenSettingDialog","parameters":[]})) |
95 | 95 |
|
96 | 96 | @classmethod |
97 | 97 | def start_loadingbar(cls): |
98 | 98 | """ |
99 | 99 | start loading animation in wox |
100 | 100 | """ |
101 | | - print(json.dumps({"method": "Wox.StartLoadingBar","parameters":[]})) |
| 101 | + print(json.dumps({"method": "Flow.Launcher.StartLoadingBar","parameters":[]})) |
102 | 102 |
|
103 | 103 | @classmethod |
104 | 104 | def stop_loadingbar(cls): |
105 | 105 | """ |
106 | 106 | stop loading animation in wox |
107 | 107 | """ |
108 | | - print(json.dumps({"method": "Wox.StopLoadingBar","parameters":[]})) |
| 108 | + print(json.dumps({"method": "Flow.Launcher.StopLoadingBar","parameters":[]})) |
109 | 109 |
|
110 | 110 | @classmethod |
111 | 111 | def reload_plugins(cls): |
112 | 112 | """ |
113 | 113 | reload all wox plugins |
114 | 114 | """ |
115 | | - print(json.dumps({"method": "Wox.ReloadPlugins","parameters":[]})) |
| 115 | + print(json.dumps({"method": "Flow.Launcher.ReloadPlugins","parameters":[]})) |
0 commit comments