Notices


Reply
Thread Tools
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#1
I am a compatent programmer but i am new to developing for linux and using c++. That said i would like to have a button that i can press that will enable disable the proxy settings under the connection i am currently using. This seems to me to be a good project for a beginner because there is very little functionality.

I was wondering if any one had any good ideas on how this could be done or may have experiance doing this sort of thing.

I have read a little about the d-bus would this be a sutable way to interface with the proxy settings or am i completly barking up the wrong tree.

Im not asking for any one to do this for me or spoon feed me through this project im litraly asking to be pointed in the right direction.

Last edited by jamie721; 2010-05-02 at 14:02.
 
Posts: 82 | Thanked: 10 times | Joined on Mar 2010
#2
That's an interesting idea. Such a widget would be useful to me. Good luck :-)
 

The Following User Says Thank You to ChadiM For This Useful Post:
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#3
ok so here is an update for my idea.

Functinality

1. if there is no proxy enabled, proxy is enabled with default values. if there is a proxy enabled, proxy will be disabled.

2.maybe settings button that will take you to configure proxy.

Thoughts on the process of doing this safely.

1.
a) Determin the current connection.

b) Disable the current connection.

c) Enables the proxy.

d) Enable the connection.

2. some how interface with the already designed proxy configure page.(d-bus????)

----------------------------------------------------------------------------

after having a breif look into the api i have a feeling it will be a mixture of d-bus, libconic and osso-wlan.

Any one have any veiws on this idea.
 
pH5's Avatar
Posts: 138 | Thanked: 375 times | Joined on Aug 2009 @ Berlin
#4
Originally Posted by jamie721 View Post
1. if there is no proxy enabled, proxy is enabled with default values. if there is a proxy enabled, proxy will be disabled.
The current proxy can be changed by setting some GConf keys, but only after the connection is enabled (otherwise those would be overwritten by the stored connection specific proxy settings). At least microB listens for changes on those keys, so disconecting / reconnecting might not even be needed.
 

The Following User Says Thank You to pH5 For This Useful Post:
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#5
Originally Posted by pH5 View Post
The current proxy can be changed by setting some GConf keys, but only after the connection is enabled (otherwise those would be overwritten by the stored connection specific proxy settings). At least microB listens for changes on those keys, so disconecting / reconnecting might not even be needed.
Thank you that was very informative. best feedback yet. Does it sound like a good idea to you?
 
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#6
Originally Posted by pH5 View Post
The current proxy can be changed by setting some GConf keys, but only after the connection is enabled (otherwise those would be overwritten by the stored connection specific proxy settings). At least microB listens for changes on those keys, so disconecting / reconnecting might not even be needed.
After checking your link this is gold dust omg thank you so much.
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:08.