Update of /cvsroot/mahogany/M/include
In directory usw-pr-cvs1:/tmp/cvs-serv22197/include
Modified Files:
MSearch.h
Log Message:
started changing the search dialog to work with multiple folders (but for now it's
completely broken)
Index: MSearch.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MSearch.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -u -2 -r1.2 -r1.3
--- MSearch.h 4 Jul 2002 23:27:06 -0000 1.2
+++ MSearch.h 22 Jul 2002 00:02:29 -0000 1.3
@@ -15,5 +15,5 @@
/**
- Search criterium for searching folder for certain messages.
+ Search criterium for searching folders for certain messages.
*/
struct SearchCriterium
@@ -32,10 +32,40 @@
};
+ /// which part of the message to search
Type m_What;
- bool m_Invert;
+
+ /// what to search for
String m_Key;
- SearchCriterium() { m_What = SC_ILLEGAL; m_Invert = false; }
+ /// invert the criterium?
+ bool m_Invert;
+
+ /// the number of folders in m_Folders array (if 0, only the current one)
+ size_t m_nFolders;
+
+ /// the array of size m_nFolders of folders to search
+ MFolder *m_Folders;
+
+ SearchCriterium() { m_What = SC_ILLEGAL; m_Invert = false; m_nFolders = 0; }
};
+
+/**
+ Show the dialog allowing the user to specify the search criteria. If this
+ function returns true, the caller should continue with searching, otherwise
+ the search is cancelled. In the former case, crit out parameter contains not
+ only what to search, but also where to search for it: either just in the
+ current folder in which case crit->m_nFolders == 0 or in all of the folders
+ in crit->m_Folders array which, then, should all be DecRef()'d by caller.
+
+ @param crit the search criterium filled by this function
+ @param profile the profile to use for the last search values
+ @param parent the parent window for the dialog
+ @return true if ok, false if the dialog was cancelled
+ */
+extern
+bool
+ConfigureSearchMessages(SearchCriterium *crit,
+ Profile *profile,
+ wxWindow *parent);
#endif // _MSEARCH_H_
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates