summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/abview.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/addressbook/abview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/abview.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/core/pim/addressbook/abview.cpp b/core/pim/addressbook/abview.cpp
index 52e5f59..7a5b6d4 100644
--- a/core/pim/addressbook/abview.cpp
+++ b/core/pim/addressbook/abview.cpp
@@ -51,9 +51,9 @@ AbView::AbView ( QWidget* parent, const QValueList<int>& ordered ):
m_viewStack( 0l ),
m_abTable( 0l ),
m_orderedFields( ordered )
{
- Opie::Core::owarn << "AbView::c'tor" << oendl;
+ owarn << "AbView::c'tor" << oendl;
// Load default database and handle syncing myself.. !
m_contactdb = new Opie::OPimContactAccess ( "addressbook", 0l, 0l, false );
m_contactdb -> setReadAhead( 16 ); // Use ReadAhead-Cache if available
mCat.load( categoryFileName() );
@@ -99,30 +99,30 @@ AbView::~AbView()
void AbView::setView( Views view )
{
- Opie::Core::owarn << "AbView::setView( Views view )" << oendl;
+ owarn << "AbView::setView( Views view )" << oendl;
m_curr_View = view;
load();
}
void AbView::addEntry( const Opie::OPimContact &newContact )
{
- Opie::Core::owarn << "AbView::AddContact" << oendl;
+ owarn << "AbView::AddContact" << oendl;
m_contactdb->add ( newContact );
load();
}
void AbView::removeEntry( const int UID )
{
- Opie::Core::owarn << "AbView;:RemoveContact" << oendl;
+ owarn << "AbView;:RemoveContact" << oendl;
m_contactdb->remove( UID );
load();
}
void AbView::replaceEntry( const Opie::OPimContact &contact )
{
- Opie::Core::owarn << "AbView::ReplaceContact" << oendl;
+ owarn << "AbView::ReplaceContact" << oendl;
m_contactdb->replace( contact );
load();
}
@@ -144,16 +144,16 @@ Opie::OPimContact AbView::currentEntry()
}
bool AbView::save()
{
- // Opie::Core::owarn << "AbView::Save data" << oendl;
+ // owarn << "AbView::Save data" << oendl;
return m_contactdb->save();
}
void AbView::load()
{
- Opie::Core::owarn << "AbView::Load data" << oendl;
+ owarn << "AbView::Load data" << oendl;
// Letter Search is stopped at this place
emit signalClearLetterPicker();
@@ -165,17 +165,17 @@ void AbView::load()
if ( m_curr_category != -1 )
clearForCategory();
}
- Opie::Core::owarn << "Number of contacts: " << m_list.count() << oendl;
+ owarn << "Number of contacts: " << m_list.count() << oendl;
updateView( true );
}
void AbView::reload()
{
- Opie::Core::owarn << "AbView::::reload()" << oendl;
+ owarn << "AbView::::reload()" << oendl;
m_contactdb->reload();
load();
}
@@ -186,9 +186,9 @@ void AbView::clear()
}
void AbView::setShowByCategory( const QString& cat )
{
- Opie::Core::owarn << "AbView::setShowCategory( const QString& cat )" << oendl;
+ owarn << "AbView::setShowCategory( const QString& cat )" << oendl;
int intCat = 0;
// All (cat == NULL) will be stored as -1
@@ -198,9 +198,9 @@ void AbView::setShowByCategory( const QString& cat )
intCat = mCat.id("Contacts", cat );
// Just do anything if we really change the category
if ( intCat != m_curr_category ){
- // Opie::Core::owarn << "Categories: Selected " << cat << ".. Number: "
+ // owarn << "Categories: Selected " << cat << ".. Number: "
// << m_curr_category << oendl;
m_curr_category = intCat;
emit signalClearLetterPicker();
@@ -211,12 +211,12 @@ void AbView::setShowByCategory( const QString& cat )
}
void AbView::setShowToView( Views view )
{
- Opie::Core::owarn << "void AbView::setShowToView( View " << view << " )" << oendl;
+ owarn << "void AbView::setShowToView( View " << view << " )" << oendl;
if ( m_curr_View != view ){
- Opie::Core::owarn << "Change the View (Category is: " << m_curr_category << ")" << oendl;
+ owarn << "Change the View (Category is: " << m_curr_category << ")" << oendl;
m_prev_View = m_curr_View;
m_curr_View = view;
updateView();
@@ -225,9 +225,9 @@ void AbView::setShowToView( Views view )
}
void AbView::setShowByLetter( char c, AbConfig::LPSearchMode mode )
{
- Opie::Core::owarn << "void AbView::setShowByLetter( " << c << ", " << mode << " )" << oendl;
+ owarn << "void AbView::setShowByLetter( " << c << ", " << mode << " )" << oendl;
assert( mode < AbConfig::LASTELEMENT );
Opie::OPimContact query;
@@ -248,9 +248,9 @@ void AbView::setShowByLetter( char c, AbConfig::LPSearchMode mode )
case AbConfig::FileAs:
query.setFileAs( QString("%1*").arg(c) );
break;
default:
- Opie::Core::owarn << "Unknown Searchmode for AbView::setShowByLetter ! -> " << mode << oendl
+ owarn << "Unknown Searchmode for AbView::setShowByLetter ! -> " << mode << oendl
<< "I will ignore it.." << oendl;
return;
}
m_list = m_contactdb->queryByExample( query, Opie::OPimContactAccess::WildCards | Opie::OPimContactAccess::IgnoreCase );
@@ -278,9 +278,9 @@ QString AbView::showCategory() const
}
void AbView::showPersonal( bool personal )
{
- Opie::Core::owarn << "void AbView::showPersonal( " << personal << " )" << oendl;
+ owarn << "void AbView::showPersonal( " << personal << " )" << oendl;
if ( personal ){
if ( m_inPersonal )
@@ -334,9 +334,9 @@ QStringList AbView::categories()
// BEGIN: Slots
void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp,
bool , QString cat )
{
- // Opie::Core::owarn << "void AbView::slotDoFind" << oendl;
+ // owarn << "void AbView::slotDoFind" << oendl;
// We reloading the data: Deselect Letterpicker
emit signalClearLetterPicker();
@@ -348,18 +348,18 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp,
else{
category = mCat.id("Contacts", cat );
}
- // Opie::Core::owarn << "Find in Category " << category << oendl;
+ // owarn << "Find in Category " << category << oendl;
QRegExp r( str );
r.setCaseSensitive( caseSensitive );
r.setWildcard( !useRegExp );
// Get all matching entries out of the database
m_list = m_contactdb->matchRegexp( r );
- // Opie::Core::owarn << "Found: " << m_list.count() << oendl;
+ // owarn << "Found: " << m_list.count() << oendl;
if ( m_list.count() == 0 ){
emit signalNotFound();
return;
}
@@ -381,18 +381,18 @@ void AbView::offSearch()
load();
}
void AbView::slotSwitch(){
- // Opie::Core::owarn << "AbView::slotSwitch()" << oendl;
+ // owarn << "AbView::slotSwitch()" << oendl;
m_prev_View = m_curr_View;
switch ( (int) m_curr_View ){
case TableView:
- Opie::Core::owarn << "Switching to CardView" << oendl;
+ owarn << "Switching to CardView" << oendl;
m_curr_View = CardView;
break;
case CardView:
- Opie::Core::owarn << "Switching to TableView" << oendl;
+ owarn << "Switching to TableView" << oendl;
m_curr_View = TableView;
break;
}
updateView();
@@ -409,9 +409,9 @@ void AbView::clearForCategory()
Opie::OPimContactAccess::List allList = m_list;
if ( m_curr_category != -1 ){
for ( it = allList.begin(); it != allList.end(); ++it ){
if ( !contactCompare( *it, m_curr_category ) ){
- //Opie::Core::owarn << "Removing " << (*it).uid() << oendl;
+ //owarn << "Removing " << (*it).uid() << oendl;
m_list.remove( (*it).uid() );
}
}
}
@@ -419,32 +419,32 @@ void AbView::clearForCategory()
}
bool AbView::contactCompare( const Opie::OPimContact &cnt, int category )
{
- // Opie::Core::owarn << "bool AbView::contactCompare( const Opie::OPimContact &cnt, "
+ // owarn << "bool AbView::contactCompare( const Opie::OPimContact &cnt, "
// << category << " )" << oendl;
bool returnMe;
QArray<int> cats;
cats = cnt.categories();
- // Opie::Core::owarn << "Number of categories: " << cats.count() << oendl;
+ // owarn << "Number of categories: " << cats.count() << oendl;
returnMe = false;
if ( cats.count() == 0 && category == 0 )
// Contacts with no category will just shown on "All" and "Unfiled"
returnMe = true;
else {
int i;
for ( i = 0; i < int(cats.count()); i++ ) {
- //Opie::Core::owarn << "Comparing " << cats[i] << " with " << category << oendl;
+ //owarn << "Comparing " << cats[i] << " with " << category << oendl;
if ( cats[i] == category ) {
returnMe = true;
break;
}
}
}
- // Opie::Core::owarn << "Return: " << returnMe << oendl;
+ // owarn << "Return: " << returnMe << oendl;
return returnMe;
}
// In Some rare cases we have to update all lists..
@@ -455,9 +455,9 @@ void AbView::updateListinViews()
}
void AbView::updateView( bool newdata )
{
- // Opie::Core::owarn << "AbView::updateView()" << oendl;
+ // owarn << "AbView::updateView()" << oendl;
if ( m_viewStack -> visibleWidget() ){
m_viewStack -> visibleWidget() -> clearFocus();
}