## ZifPackageRhn ZifPackageRhn — RHN package |

## Synopsis

    struct              ZifPackageRhn;
    struct              ZifPackageRhnClass;
    enum                ZifPackageRhnPrecache;
    guint               zif_package_rhn_get_id              (ZifPackageRhn *pkg);
    ZifPackage *        zif_package_rhn_new                 (void);
    gboolean            zif_package_rhn_precache            (ZifPackageRhn *pkg,
                                                             ZifPackageRhnPrecache precache,
                                                             GError **error);
    void                zif_package_rhn_set_id              (ZifPackageRhn *pkg,
                                                             guint id);
    void                zif_package_rhn_set_server          (ZifPackageRhn *pkg,
                                                             const gchar *server);
    void                zif_package_rhn_set_session_key     (ZifPackageRhn *pkg,
                                                             const gchar *session_key);

## Object Hierarchy

      GObject
       +----ZifPackage
             +----ZifPackageRhn

## Description

This object is a subclass of ZifPackage

## Details

### struct ZifPackageRhn

    struct ZifPackageRhn;

### struct ZifPackageRhnClass

    struct ZifPackageRhnClass {
    	ZifPackageClass		 parent_class;
    	/* Padding for future expansion */
    	void (*_zif_reserved1) (void);
    	void (*_zif_reserved2) (void);
    	void (*_zif_reserved3) (void);
    	void (*_zif_reserved4) (void);
    };

### enum ZifPackageRhnPrecache

    typedef enum {
    	ZIF_PACKAGE_RHN_PRECACHE_GET_DETAILS = 1,
    	ZIF_PACKAGE_RHN_PRECACHE_LIST_FILES = 2,
    	ZIF_PACKAGE_RHN_PRECACHE_LIST_DEPS = 4
    } ZifPackageRhnPrecache;

`ZIF_PACKAGE_RHN_PRECACHE_GET_DETAILS` |
`ZIF_PACKAGE_RHN_PRECACHE_LIST_FILES` |
`ZIF_PACKAGE_RHN_PRECACHE_LIST_DEPS` |

### zif_package_rhn_get_id ()

    guint               zif_package_rhn_get_id              (ZifPackageRhn *pkg);

Gets the RHN package ID for the package.

`pkg` : | A ZifPackageRhn
Returns : | The value or 0 if unset

Since 0.1.6

### zif_package_rhn_new ()

    ZifPackage *        zif_package_rhn_new                 (void);

Returns : | A new ZifPackageRhn instance.

Since 0.1.6

### zif_package_rhn_precache ()

    gboolean            zif_package_rhn_precache            (ZifPackageRhn *pkg,
                                                             ZifPackageRhnPrecache precache,
                                                             GError **error);

### zif_package_rhn_set_id ()

    void                zif_package_rhn_set_id              (ZifPackageRhn *pkg,
                                                             guint id);

Sets a RHN package ID.

`pkg` : | A ZifPackageRhn
`id` : | the RHN package ID

Since 0.1.6

### zif_package_rhn_set_server ()

    void                zif_package_rhn_set_server          (ZifPackageRhn *pkg,
                                                             const gchar *server);

Sets a RHN server.

`pkg` : | A ZifPackageRhn
`server` : | the RHN server to use

Since 0.1.6

### zif_package_rhn_set_session_key ()

    void                zif_package_rhn_set_session_key     (ZifPackageRhn *pkg,
                                                             const gchar *session_key);

Sets a RHN session key.

`pkg` : | A ZifPackageRhn
`session_key` : | the RHN session key

Since 0.1.6