Logo Search packages:      
Sourcecode: qchat version File versions  Download package

singlemsgshistory.h

/***************************************************************************
 *   Copyright (C) 2007 by Anistratov Oleg                                 *
 *   ower86@gmail.com                                                      *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License version 2        *
 *   as published by the Free Software Foundation;                         *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 ***************************************************************************/
#ifndef SINGLEMSGSHISTORY_H
#define SINGLEMSGSHISTORY_H

#include <QObject>
#include <QList>

#include "message.h"

/**
      @author Anistratov Oleg <ower86@gmail.com>
*/
00026 class SingleMsgsHistory : public QObject
{
  Q_OBJECT
  private:
    QList<Message*> m_messages;

  public:
    SingleMsgsHistory(QObject *parent = 0);
    ~SingleMsgsHistory();

   void addMessage(Message* msg){m_messages.append(msg);}
   Message* message(int n){if(m_messages.size()) return m_messages[n]; else return NULL;}

};

#endif

Generated by  Doxygen 1.6.0   Back to index