Benoit Grégoire <[EMAIL PROTECTED]> writes:

> I think the best thing you could work on is indeed (If I understand you 
> properly) the match remembering functions I discussed in the mail I sent on 
> the 21st:
> 
> Account * gnc_import_find_dest_account(char * match_text) and
> void gnc_import_set_dest_account(char * match_text, Account * dest_account).  
> These should be implemented in a new C file and included in the generic 
> importers public include file.

May I suggest:

        typedef enum {
                GNCIMPORT_MATCH_PAYEE = 1,
                GNCIMPORT_MATCH_MEMO,
                GNCIMPORT_MATCH_CATEGORY,
                GNCIMPORT_MATCH_CLASS,
        } GncImportMatchType;

        Account* gnc_import_find_map_account(GNCBook*, GncImportMatchType);
        void gnc_import_add_map_account(GNCBook*, GncImportMatchType, Account*);

State (where to store the maps) would be _useful_.   Different books
probably want different match-maps.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       [EMAIL PROTECTED]                        PGP key available
_______________________________________________
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnucash.org/cgi-bin/mailman/listinfo/gnucash-devel

Reply via email to