Reply
Thread Tools
Posts: 578 | Thanked: 994 times | Joined on Dec 2012
#1
I have simple menu in microb to quick access and I want add option to close top browser window. Is anyone know how to close microb via dbus in qt? I tried but it never works. Here is my code:
Code:
QDBusConnection bus2 = QDBusConnection::sessionBus();
QDBusMessage msg2 = QDBusMessage::createMethodCall("com.nokia.osso_browser",
                                   "/com/nokia/osso_browser/request",
                                   "com.nokia.osso_browser.request",
                                   "close_browser");
bus2.call(msg2);

Sorry for my English
Attached Images
 

Last edited by elros34; 2013-09-19 at 10:08.
 

The Following User Says Thank You to elros34 For This Useful Post:
gidzzz's Avatar
Posts: 282 | Thanked: 2,387 times | Joined on Sep 2011
#2
There is no "close_browser". From tablet-browser-interface.h:
Code:
/**
 * Send this to close top_window.
 */ 
#define OSSO_BROWSER_CLOSE    "close_window"

/**
 * Send this to close browser.
 */ 
#define OSSO_BROWSER_EXIT    "exit_browser"
__________________
My Thumb mini-repository: http://gidzzz.mooo.com/maemo/.
 

The Following 2 Users Say Thank You to gidzzz For This Useful Post:
Posts: 578 | Thanked: 994 times | Joined on Dec 2012
#3
gidzzz, thanks for this.
Is there any method to disable history on swipe (from right to left)?
 

The Following User Says Thank You to elros34 For This Useful Post:
Posts: 242 | Thanked: 169 times | Joined on Nov 2011
#4
wow, can you implement that in qtedger now?
 
Posts: 578 | Thanked: 994 times | Joined on Dec 2012
#5
It's seperate app but you guessed right I use qtedger to show this only after swipe and only in microb.
 

The Following User Says Thank You to elros34 For This Useful Post:
Posts: 578 | Thanked: 994 times | Joined on Dec 2012
#6
There is a strange bug: when I show this menu in fullscreen window next I switch to non fullscreen then when I want to show it once again its completly invisible but react on touch. It's irrelevant in this app but I have something similar to QuickBar (n9) and it's important to have quick access in full/non-fullscreen windows. Any ideas?
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:40.