[packagekit] Media Change Enums

Daniel Nicoletti dantti85-pk at yahoo.com.br
Wed Apr 1 08:15:43 PDT 2009


Hi, as discussed with Richard here
are the proposed enums and signals to handle
media change in backends the use media as a repo.

PK_ERROR_ENUM_MEDIA_CHANGE_REQUIRED

and the new signal:

    void        (* media_change_required)        (PkClient    *client,
                                                                 const gchar    *media_id,
                                                                 PkMediaTypeEnum type);

PkMediaTypeEnum {
              GENERIC_DISK,
              CD,
              DVD
}

for aptcc i just need generic disk sice afaik we can't know which kind is it,
but i think cd + dvd should also be important.

The user sees the dialog and inserts the media, pessing ok,
the transaction will be rescheduled and if the user inserted the wrong media
it will loop again and again.. till the user can put the right media,
so the _("insert %s labeled: %s", media_type, media_id) dialog
should have a cancel button so if the user want to disable this kind of media
he can cancel and disable the cdrom repo in gpk-repo or kpk-settings.

Comments welcome,
Daniel.


      Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com



More information about the PackageKit mailing list