RNetAddress

RNetAddress

Synopsis




#define             R_NET_ADDRESS_TYPE
#define             R_NET_ADDRESS                       (obj)
#define             R_NET_ADDRESS_CLASS                 (klass)
#define             IS_R_NET_ADDRESS                    (obj)
#define             IS_R_NET_ADDRESS_CLASS              (klass)
#define             R_NET_ADDRESS_GET_CLASS             (kls)
                    RNetAddressPrivate;
enum                RNetAddressType;
                    RNetAddress;
GType               r_net_address_get_type              (void);
RNetAddress*        r_net_address_new                   (void);
void                r_net_address_free                  (RNetAddress *net);
gboolean            r_net_address_search                (RNetAddress *net,
                                                         const gchar *str);
RNetAddress*        r_net_address_copy                  (RNetAddress *net);
gchar*              r_net_address_decode_type           (RNetAddressType type);
RNetAddressType     r_net_address_encode_type           (gchar *type);

Object Hierarchy


  GObject
   +----RNetAddress

Properties


  "url"                      gchararray            : Read / Write / Construct
  "url-type"                 gint                  : Read / Write / Construct

Description

Details

R_NET_ADDRESS_TYPE

#define R_NET_ADDRESS_TYPE            (r_net_address_get_type())


R_NET_ADDRESS()

#define             R_NET_ADDRESS(obj)

obj :

R_NET_ADDRESS_CLASS()

#define             R_NET_ADDRESS_CLASS(klass)

klass :

IS_R_NET_ADDRESS()

#define             IS_R_NET_ADDRESS(obj)

obj :

IS_R_NET_ADDRESS_CLASS()

#define             IS_R_NET_ADDRESS_CLASS(klass)

klass :

R_NET_ADDRESS_GET_CLASS()

#define             R_NET_ADDRESS_GET_CLASS(kls)

kls :

RNetAddressPrivate

typedef struct _RNetAddressPrivate RNetAddressPrivate;


enum RNetAddressType

typedef enum {
  R_NET_ADDRESS_WEB = 0,
  R_NET_ADDRESS_EMAIL,
  R_NET_ADDRESS_EKIGA,
  R_NET_ADDRESS_IRC,
  R_NET_ADDRESS_IRC_AIM,
  R_NET_ADDRESS_IRC_ICQ,
  R_NET_ADDRESS_IRC_JABBER,
  R_NET_ADDRESS_IRC_YAHOO,
  R_NET_ADDRESS_IRC_MSN,
  R_NET_ADDRESS_WORK_WEB,
  R_NET_ADDRESS_WORK_EMAIL,
  R_NET_ADDRESS_UNKNOWN
} RNetAddressType;


RNetAddress

typedef struct _RNetAddress RNetAddress;


r_net_address_get_type ()

GType               r_net_address_get_type              (void);

Returns :

r_net_address_new ()

RNetAddress*        r_net_address_new                   (void);

create a new RNetAddress

Returns : a RNetAddress*

r_net_address_free ()

void                r_net_address_free                  (RNetAddress *net);

free the memory owned by net

net : a RNetAddress

r_net_address_search ()

gboolean            r_net_address_search                (RNetAddress *net,
                                                         const gchar *str);

net :
str :
Returns :

r_net_address_copy ()

RNetAddress*        r_net_address_copy                  (RNetAddress *net);

copy the given net address.

net : a RNetAddress
Returns : a new allocated RNetAddress*

r_net_address_decode_type ()

gchar*              r_net_address_decode_type           (RNetAddressType type);

decode the RNetAddressType given type

type : a RNetAddressType
Returns : a gchar*

r_net_address_encode_type ()

RNetAddressType     r_net_address_encode_type           (gchar *type);

type :
Returns :

Property Details

The "url" property

  "url"                      gchararray            : Read / Write / Construct

the net address uri

Default value: NULL


The "url-type" property

  "url-type"                 gint                  : Read / Write / Construct

the uri's type, see RNetAddressType for valid values

Allowed values: [0,11]

Default value: 11