ofx_request.hh
Go to the documentation of this file.

    00001 /***************************************************************************
    00002                           ofx_request.hh
    00003                              -------------------
    00004     copyright            : (C) 2005 by Ace Jones
    00005     email                : acejones@users.sourceforge.net
    00006 ***************************************************************************/
    00011 /***************************************************************************
    00012  *                                                                         *
    00013  *   This program is free software; you can redistribute it and/or modify  *
    00014  *   it under the terms of the GNU General Public License as published by  *
    00015  *   the Free Software Foundation; either version 2 of the License, or     *
    00016  *   (at your option) any later version.                                   *
    00017  *                                                                         *
    00018  ***************************************************************************/
    00019
    00020 #ifndef OFX_REQUEST_H
    00021 #define OFX_REQUEST_H
    00022
    00023 #include <string>
    00024 #include "libofx.h"
    00025 #include "ofx_aggregate.hh"
    00026
    00027 using namespace std;
    00028
    00036 class OfxRequest: public OfxAggregate
    00037 {
    00038 public:
    00045   OfxRequest(const OfxFiLogin& fi): OfxAggregate("OFX"), m_login(fi) {}
    00046
    00047 //protected:
    00048 public:
    00055   OfxAggregate SignOnRequest(void) const;
    00056
    00068   OfxAggregate RequestMessage(const string& msgtype, const string& trntype, const OfxAggregate& aggregate ) const;
    00069
    00070 protected:
    00071   OfxFiLogin m_login;
    00072 };
    00073
    00078
    00079 string time_t_to_ofxdatetime( time_t time );
    00080 string time_t_to_ofxdate( time_t time );
    00081 string OfxHeader(const char *hver);
    00082
    00084
    00085 #endif // OFX_REQUEST_H