Re: daier...@gmail.com

2010-02-21 Thread kiran
Thanks


On Sat, Feb 20, 2010 at 8:37 PM, kiran kiranbhat2...@gmail.com wrote:

 Thanks jklimes
  But what i found is that AddConnection Api is present in
 Network Manager 0.8 dbus interface  and not on Network Manager 0.7 Dbus
 interface, is that true or i am missing something.
  Even the dbus interface Documentation of NetworkManager says
 that.

 regards
 kiran






 On Thu, Feb 11, 2010 at 7:28 PM, Jirka Klimes jkli...@redhat.com wrote:

 On Thursday 11 of February 2010 12:45:33 kiran wrote:
  Hi
 
  How can i add new network Connection (cdma,gsm)  to
 the
  system-settings connection list through Dbus Api Interface exported by
 the
  System settings  Service.
 
 
  regards
  kiran
 

 Hi kiran,

 yes, it's possible. You would use AddConnection(connection) method of
 org.freedesktop.NetworkManagerSettings interface.
 You can use attached python example.

 However, be sure that you use 'keyfile' plugin, otherwise you won't be
 able to
 store the connection (just keyfile plugin supports it).

 (/etc/NetworkManager/nm-system-settings.conf
 should contain keyfile keyword:
 [main]
 plugins=ifcfg-rh, keyfile
 )

 Jirka


  cut here 
 #!/usr/bin/python

 import dbus

 uuid = f375c550-564a-4235-be1d-74a2c0c0bdd1

 s_con = { 'id':  'My GSM connection',
  'uuid':uuid,
  'type':'gsm',
  'autoconnect': False }

 s_gsm = { 'username': 'user_name',
  'apn':  'epc.tmobile.com',
  'number':   '*99#' }

 s_ip4 = { 'method': 'auto' }

 s_ppp = { 'noauth': True }

 s_serial = { 'baud': 115200 }


 con = { 'connection': s_con,
'gsm': s_gsm,
'ppp': s_ppp,
'serial': s_serial,
'ipv4': s_ip4 }


 sys_bus = dbus.SystemBus()
 proxy = sys_bus.get_object(org.freedesktop.NetworkManagerSystemSettings,
 /org/freedesktop/NetworkManagerSettings)
 iface = dbus.Interface(proxy, org.freedesktop.NetworkManagerSettings)

 try:
iface.AddConnection(con)
 except Exception, e:
print e
  cut here 



___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: daier...@gmail.com

2010-02-20 Thread kiran
Thanks jklimes
 But what i found is that AddConnection Api is present in
Network Manager 0.8 dbus interface  and not on Network Manager 0.7 Dbus
interface, is that true or i am missing something.
 Even the dbus interface Documentation of NetworkManager says
that.

regards
kiran





On Thu, Feb 11, 2010 at 7:28 PM, Jirka Klimes jkli...@redhat.com wrote:

 On Thursday 11 of February 2010 12:45:33 kiran wrote:
  Hi
 
  How can i add new network Connection (cdma,gsm)  to
 the
  system-settings connection list through Dbus Api Interface exported by
 the
  System settings  Service.
 
 
  regards
  kiran
 

 Hi kiran,

 yes, it's possible. You would use AddConnection(connection) method of
 org.freedesktop.NetworkManagerSettings interface.
 You can use attached python example.

 However, be sure that you use 'keyfile' plugin, otherwise you won't be able
 to
 store the connection (just keyfile plugin supports it).

 (/etc/NetworkManager/nm-system-settings.conf
 should contain keyfile keyword:
 [main]
 plugins=ifcfg-rh, keyfile
 )

 Jirka


  cut here 
 #!/usr/bin/python

 import dbus

 uuid = f375c550-564a-4235-be1d-74a2c0c0bdd1

 s_con = { 'id':  'My GSM connection',
  'uuid':uuid,
  'type':'gsm',
  'autoconnect': False }

 s_gsm = { 'username': 'user_name',
  'apn':  'epc.tmobile.com',
  'number':   '*99#' }

 s_ip4 = { 'method': 'auto' }

 s_ppp = { 'noauth': True }

 s_serial = { 'baud': 115200 }


 con = { 'connection': s_con,
'gsm': s_gsm,
'ppp': s_ppp,
'serial': s_serial,
'ipv4': s_ip4 }


 sys_bus = dbus.SystemBus()
 proxy = sys_bus.get_object(org.freedesktop.NetworkManagerSystemSettings,
 /org/freedesktop/NetworkManagerSettings)
 iface = dbus.Interface(proxy, org.freedesktop.NetworkManagerSettings)

 try:
iface.AddConnection(con)
 except Exception, e:
print e
  cut here 

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


dbus-send examples

2010-01-22 Thread Kiran Bhat
Hi 
  is there any dbus-send Api  examples for Network manager.

regards
kiran



  Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
http://downloads.yahoo.com/in/internetexplorer/___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


dbus-api examples

2010-01-21 Thread kiran
Hi
   is there any dbus-send api examples for Network manager for dial-up
(pppd)  to connect and disconnect.

regards
kiran
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Problem with Polkit DBUS

2008-08-06 Thread Kiran Kulkarni
I am getting that polkit-dbus is not installed. Which package I should 
install for the polkit-dbus. the output of autgen.sh was


checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking whether byte ordering is bigendian... no
checking for /etc/redhat-release... no
checking for /etc/SuSE-release... no
checking for /etc/fedora-release... no
checking for /etc/gentoo-release... no
checking for /etc/debian_version... yes
checking for /etc/arch-release... no
checking for /etc/slackware-version... no
checking for /etc/frugalware-release... no
checking for /etc/mandriva-release... no
checking Linux Wireless Extensions = 18... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DBUS... yes
Your dbus version is 1,1,1.
checking for GTHREAD... yes
checking for GLIB... yes
checking for GMODULE... yes
checking for GOBJECT... yes
GIO not found; using private GFileMonitor library
checking for HAL... yes
checking for LIBNL... yes
checking for POLKIT... configure: error: Package requirements 
(polkit-dbus) were not met:


No package 'polkit-dbus' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list