Bug 96287

Summary: saved flagged feeds enhancement
Product: [Applications] akregator Reporter: Sharon Kimble <sharonm63>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: scottmmorris
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sharon Kimble 2005-01-04 13:45:31 UTC
Version:           1.0beta8 (using KDE KDE 3.3.2)
Installed from:    RedHat RPMs
OS:                Linux

It would be nice to just be able to display the items that are flagged without all the cruft of being surrounded by the unflagged entries, thereby distracting you from what you're really interested in.

Perhaps this could be acomplished by just adding 'Flagged' to the drop-down of 'All Articles, New & Unread, New, Unread' ?
Comment 1 Frank Osterfeld 2005-01-21 08:25:51 UTC
*** Bug 97576 has been marked as a duplicate of this bug. ***
Comment 2 Frank Osterfeld 2005-01-21 13:03:09 UTC
CVS commit by osterfeld: 

add "keep flag set" entry to the search filter combobox.
 
FEATURE: 96287


  M +7 -0      akregator_view.cpp   1.214
  M +2 -0      articlefilter.cpp   1.11
  M +1 -1      articlefilter.h   1.6


--- kdepim/akregator/src/akregator_view.cpp  #1.213:1.214
@@ -173,4 +173,5 @@ View::View( Part *part, QWidget *parent,
     m_searchCombo->insertItem(i18n("New"));
     m_searchCombo->insertItem(i18n("Unread"));
+    m_searchCombo->insertItem(i18n("Keep Flag Set"));
 
     QToolTip::add( clearButton, i18n( "Clear filter" ) );
@@ -1343,4 +1344,10 @@ void View::updateSearch(const QString &s
                 break;
             }
+            case 4: // Keep flag set
+            {
+                Criterion crit( Criterion::KeepFlag, Criterion::Equals, true);
+                statusCriteria << crit;
+                break;
+            }
             default:
                 break;

--- kdepim/akregator/src/articlefilter.cpp  #1.10:1.11
@@ -48,4 +48,6 @@ bool Criterion::satisfiedBy( const MyArt
             concreteSubject = QVariant(article.status());
             break;
+        case KeepFlag:
+            concreteSubject = QVariant(article.keep());   
         default:
             break;

--- kdepim/akregator/src/articlefilter.h  #1.5:1.6
@@ -27,5 +27,5 @@ class Criterion
 
         enum Subject {
-            Title, Description, Link, Status
+            Title, Description, Link, Status, KeepFlag
         };