58 CaptureFilterListChanged,
61 DisplayFilterListChanged,
63 FilterExpressionsChanged,
64 LocalInterfacesChanged,
65 NameResolutionChanged,
66 PacketDissectionChanged,
69 RecentCapturesChanged,
70 RecentPreferencesRead,
88 void registerUpdate(register_action_e action,
const char *message);
89 void emitAppSignal(AppSignal signal);
103 void queueAppSignal(AppSignal signal) { app_signals_ << signal; }
104 void emitStatCommandSignal(
const QString &menu_path,
const char *arg,
void *userdata);
105 void emitTapParameterSignal(
const QString cfg_abbr,
const QString arg,
void *userdata);
106 void addDynamicMenuGroupItem(
int group, QAction *sg_action);
107 void appendDynamicMenuGroupItem(
int group, QAction *sg_action);
108 void removeDynamicMenuGroupItem(
int group, QAction *sg_action);
109 QList<QAction *> dynamicMenuGroupItems(
int group);
110 QList<QAction *> addedMenuGroupItems(
int group);
111 QList<QAction *> removedMenuGroupItems(
int group);
112 void clearAddedMenuGroupItems();
113 void clearRemovedMenuGroupItems();
116 void emitLocalInterfaceEvent(
const char *ifname,
int added,
int up);
118 virtual void refreshLocalInterfaces();
122 GList * getInterfaceList()
const;
124 void setInterfaceList(GList *if_list);
127 struct _e_prefs * readConfigurationFiles(
bool reset);
128 QList<recent_item_status *> recentItems()
const;
129 void addRecentItem(
const QString filename, qint64 size,
bool accessible);
130 void removeRecentItem(
const QString &filename);
131 QDir openDialogInitialDir();
132 void setLastOpenDirFromFilename(QString file_name);
133 void helpTopicAction(topic_action_e action);
134 const QFont monospaceFont(
bool zoomed =
false)
const;
135 void setMonospaceFont(
const char *font_string);
136 int monospaceTextSize(
const char *str);
137 void setConfigurationProfile(
const char *profile_name,
bool write_recent_file =
true);
138 void reloadLuaPluginsDelayed();
139 bool isInitialized() {
return initialized_; }
140 void setReloadingLua(
bool is_reloading) { is_reloading_lua_ = is_reloading; }
141 bool isReloadingLua() {
return is_reloading_lua_; }
142 const QIcon &normalIcon();
143 const QIcon &captureIcon();
144 const QString &windowTitleSeparator()
const {
return window_title_separator_; }
145 const QString windowTitleString(QStringList title_parts);
146 const QString windowTitleString(QString title_part) {
return windowTitleString(QStringList() << title_part); }
147 void applyCustomColorsFromRecent();
148#if defined(HAVE_SOFTWARE_UPDATE) && defined(Q_OS_WIN)
149 void rejectSoftwareUpdate() { software_update_ok_ =
false; }
150 bool softwareUpdateCanShutdown();
151 void softwareUpdateShutdownRequest();
155 QTranslator translator;
156 QTranslator translatorQt;
157 void loadLanguage(
const QString language);
159 void doTriggerMenuItem(MainMenuItem menuItem);
161 void zoomTextFont(
int zoomLevel);
163 void pushStatus(StatusInfo sinfo,
const QString &message,
const QString &messagetip = QString());
164 void popStatus(StatusInfo sinfo);
166 void gotoFrame(
int frameNum);
170 bool is_reloading_lua_;
173 QTimer recent_timer_;
174 QTimer packet_data_timer_;
175 QTimer tap_update_timer_;
176 QList<QString> pending_open_files_;
177 QSocketNotifier *if_notifier_;
178 static QString window_title_separator_;
179 QList<AppSignal> app_signals_;
180 int active_captures_;
181 bool refresh_interfaces_pending_;
183#if defined(HAVE_SOFTWARE_UPDATE) && defined(Q_OS_WIN)
184 bool software_update_ok_;
187 void storeCustomColorsInRecent();
188 void clearDynamicMenuGroupItems();
191 bool event(QEvent *event);
192 virtual void initializeIcons() = 0;
197 GList *cached_if_list_;
201 void appInitialized();
202 void localInterfaceEvent(
const char *ifname,
int added,
int up);
203 void scanLocalInterfaces(GList *filter_list =
nullptr);
204 void localInterfaceListChanged();
205 void openCaptureFile(QString cf_path, QString display_filter,
unsigned int type);
206 void openCaptureOptions();
207 void recentPreferencesRead();
208 void updateRecentCaptureStatus(
const QString &filename, qint64 size,
bool accessible);
209 void splashUpdate(register_action_e action,
const char *message);
210 void profileChanging();
211 void profileNameChanged(
const char *profile_name);
213 void freezePacketList(
bool changing_profile);
214 void columnsChanged();
215 void captureFilterListChanged();
216 void displayFilterListChanged();
217 void filterExpressionsChanged();
218 void packetDissectionChanged();
219 void colorsChanged();
220 void preferencesChanged();
221 void addressResolutionChanged();
222 void columnDataChanged();
223 void checkDisplayFilter();
224 void fieldsChanged();
225 void reloadLuaPlugins();
226#if defined(HAVE_SOFTWARE_UPDATE) && defined(Q_OS_WIN)
228 void softwareUpdateRequested();
229 void softwareUpdateQuit();
232 void openStatCommandDialog(
const QString &menu_path,
const char *arg,
void *userdata);
233 void openTapParameterDialog(
const QString cfg_str,
const QString arg,
void *userdata);
236 void captureActive(
int);
238 void zoomRegularFont(
const QFont & font);
239 void zoomMonospaceFont(
const QFont & font);
242 void clearRecentCaptures();
243 void refreshRecentCaptures();
249 void flushAppSignals();
251 void reloadDisplayFilterMacros();
253 void itemStatusFinished(
const QString filename =
"", qint64 size = 0,
bool accessible =
false);
259 void ifChangeEventsAvailable();
260 void refreshPacketData();
261#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) && defined(Q_OS_WIN)
262 void colorSchemeChanged();
Definition main_application.h:51
Definition main_window.h:46
void gather_wireshark_runtime_info(feature_list l)
Definition main.cpp:235
void gather_wireshark_qt_compiled_info(feature_list l)
Definition main.cpp:194