qtmobility/plugins/contacts/symbian/src/filtering/cntfilterinvalid.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    58 
    58 
    59 QList<QContactLocalId> CntFilterInvalid::contacts(
    59 QList<QContactLocalId> CntFilterInvalid::contacts(
    60         const QContactFilter &filter,
    60         const QContactFilter &filter,
    61         const QList<QContactSortOrder> &sortOrders,
    61         const QList<QContactSortOrder> &sortOrders,
    62         bool &filterSupportedflag,
    62         bool &filterSupportedflag,
    63         QContactManager::Error &error)  
    63         QContactManager::Error* error)
    64 {
    64 {
    65     Q_UNUSED(filter);
    65     Q_UNUSED(filter);
    66     Q_UNUSED(sortOrders);
    66     Q_UNUSED(sortOrders);
    67     Q_UNUSED(filterSupportedflag);
    67     Q_UNUSED(filterSupportedflag);
    68     Q_UNUSED(error);
    68     Q_UNUSED(error);
    73 
    73 
    74 
    74 
    75 bool CntFilterInvalid::filterSupported(const QContactFilter& filter) 
    75 bool CntFilterInvalid::filterSupported(const QContactFilter& filter) 
    76 {
    76 {
    77     bool result = false;
    77     bool result = false;
    78        if(QContactFilter::InvalidFilter == filter.type())
    78     if(QContactFilter::InvalidFilter == filter.type())
    79            {
    79         {
    80            result = true;
    80         result = true;
    81            }
    81         }
    82     
    82     
    83        return result;
    83     return result;
    84 }
    84 }
    85 
    85 
    86 void CntFilterInvalid::createSelectQuery(const QContactFilter& filter,
    86 void CntFilterInvalid::createSelectQuery(const QContactFilter& filter,
    87                               QString& sqlQuery,
    87                               QString& sqlQuery,
    88                               QContactManager::Error& error)
    88                               QContactManager::Error* error)
    89 
    89 
    90 {
    90 {
    91     Q_UNUSED(filter);
       
    92     Q_UNUSED(sqlQuery);
    91     Q_UNUSED(sqlQuery);
    93     Q_UNUSED(error);
    92     if(!filterSupported(filter))
    94     //Not implementation needed in this case
    93         {
    95     
    94         *error =  QContactManager::NotSupportedError;
       
    95         }
    96 }
    96 }