Changeset 2846

Show
Ignore:
Timestamp:
10/18/07 14:38:20
Author:
pvanhoof
Message:
        • Added a -DMERGEFOLDERTEST that will perform a test for

TnyMergeFolder

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r2844 r2846  
    44        together. This is experimental. Uncomment line 620 of 
    55        camel-operation.c to undo this. 
     6        * Added a -DMERGEFOLDERTEST that will perform a test for 
     7        TnyMergeFolder 
    68 
    792007-10-17  Philip Van Hoof  <pvanhoof@gnome.org> 
  • trunk/docs/building.txt

    r2586 r2846  
    130130For debugging 
    131131------------- 
     132 
     133-DDEBUG 
     134 
     135The DEBUG define will enable IMAP, POP, NNTP and SMTP debugging. If you compile 
     136with this define you'll see some of the traffic on your stdout. 
     137 
    132138CFLAGS="-DDEBUG -DDBC -D_GNU_SOURCE -O0 -Wall -g -ggdb" PKG_CONFIG_PATH=/opt/asyncworker/lib/pkgconfig \ 
    133139        ./autogen.sh --prefix=/opt/tinymail --enable-asyncworker --enable-tests --enable-unit-tests && \ 
    134140         make && sudo make install 
     141 
     142-DMERGEFOLDERTEST 
     143 
     144The mergefolder test will add a merge folder to each parent folder that has  
     145more than two subfolders, it takes the first and the second folder and  
     146creates a subfolder called MERGE TESTER that merges these two folders together. 
     147 
    135148 
    136149Other commonly used CFLAGS 
  • trunk/libtinymail-camel/tny-camel-folder.c

    r2825 r2846  
    4949#include <tny-folder-store-observer.h> 
    5050#include <tny-simple-list.h> 
     51#include <tny-merge-folder.h> 
     52 
    5153 
    5254#define TINYMAIL_ENABLE_PRIVATE_API 
     
    47284730          } 
    47294731        } 
     4732 
     4733#ifdef MERGEFOLDERTEST 
     4734        if (tny_list_get_length (list) > 1) 
     4735        { 
     4736                int i=0; 
     4737                TnyFolder *merge = tny_merge_folder_new ("MERGE TESTER"); 
     4738                TnyIterator *iter = tny_list_create_iterator (list); 
     4739                g_warning ("CREATING MERGE TEST (%d)\n", tny_list_get_length (list) ); 
     4740                while (!tny_iterator_is_done (iter) && i < 2) { 
     4741                        GObject *obj = tny_iterator_get_current (iter) 
     4742                        tny_merge_folder_add_folder (TNY_MERGE_FOLDER (merge),  
     4743                                TNY_FOLDER (obj)); 
     4744                        g_object_unref (obj); 
     4745                        i++; tny_iterator_next (iter); 
     4746                } 
     4747                g_object_unref (iter); 
     4748                tny_list_prepend (list, (Gobject *) merge); 
     4749        } 
     4750#endif 
    47304751 
    47314752        _tny_session_stop_operation (TNY_FOLDER_PRIV_GET_SESSION (priv)); 
  • trunk/libtinymail-camel/tny-camel-store-account.c

    r2825 r2846  
    3838#include <tny-folder.h> 
    3939#include <tny-folder-store.h> 
     40#include <tny-merge-folder.h> 
    4041#include <tny-camel-folder.h> 
    4142#include <tny-error.h>