Mailinglist Archive: zypp-devel (84 mails)
| < Previous | Next > |
[zypp-devel] New ui::Selectable methods...
- From: Michael Andres <ma@xxxxxxx>
- Date: Tue, 12 Aug 2008 12:25:46 +0200
- Message-id: <20080812102546.GA29855@xxxxxxx>
JFYI:
enum Fate {
TO_DELETE = -1,
UNMODIFIED = 0,
TO_INSTALL = 1
};
/** */
bool setFate( Fate fate_r );
/** Set the item to be installed (new- or re-install). */
bool setToInstall()
{ return setFate( TO_INSTALL ); }
/** Take care the item gets installed if it is not. */
bool setInstalled();
/** Take care the item gets installed if it is not, or is older. */
bool setUpToDate();
/** Set the item to be deleted (must be installed). */
bool setToDelete()
{ return setFate( TO_DELETE ); }
/** Take care the item gets deleted if it is installed. */
bool setDeleted();
/** Set the item to stay unmodified. */
bool unset()
{ return setFate( UNMODIFIED ); }
Some new status methods. They may be sometimes easier to use, as they
do not always distinguish whether installed objects are present, like
the ui::Staus does.
E.g:
unset() // thate care the item says as it is.
The same with ui::Sataus:
setStatus( hasInstalledObj() ? S_KeepInstalled : S_NoInst )
setDeleted()
vs.
( ! hasInstalledObj() || setStatus( S_Del ) )
setInstalled()
vs.
( hasInstalledObj() || setStatus( S_Install ) )
--
cu,
Michael Andres
+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
enum Fate {
TO_DELETE = -1,
UNMODIFIED = 0,
TO_INSTALL = 1
};
/** */
bool setFate( Fate fate_r );
/** Set the item to be installed (new- or re-install). */
bool setToInstall()
{ return setFate( TO_INSTALL ); }
/** Take care the item gets installed if it is not. */
bool setInstalled();
/** Take care the item gets installed if it is not, or is older. */
bool setUpToDate();
/** Set the item to be deleted (must be installed). */
bool setToDelete()
{ return setFate( TO_DELETE ); }
/** Take care the item gets deleted if it is installed. */
bool setDeleted();
/** Set the item to stay unmodified. */
bool unset()
{ return setFate( UNMODIFIED ); }
Some new status methods. They may be sometimes easier to use, as they
do not always distinguish whether installed objects are present, like
the ui::Staus does.
E.g:
unset() // thate care the item says as it is.
The same with ui::Sataus:
setStatus( hasInstalledObj() ? S_KeepInstalled : S_NoInst )
setDeleted()
vs.
( ! hasInstalledObj() || setStatus( S_Del ) )
setInstalled()
vs.
( hasInstalledObj() || setStatus( S_Install ) )
--
cu,
Michael Andres
+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |