Hi!
This one is probably dead simple by all of you, but I can't figure out what will be the best way to do it.
I have an app that require log-in. What is the best and the safest way to make user name, user group and app state available through while application (main window and dialogs)?
I figure out several ways, but do not know which one to choose and I need your help:
- use global variables (obviously this would be my first choice, but I have found several posts that advise against globals),
- use signal-slot to transfer information to a hidden field (good one, but I have to invoke signal-slot every time I do something),
- use temporary file with that info (easily broken into).
Is there any other way to do it? Please advise and/or comment on those three options.
Regards; Luka
Bookmarks