OSDN Git Service

Merge remote-tracking branch 'origin/master'
[memma/Source.git] / latesttweetsfortime.cpp
1 #include "latesttweetsfortime.h"
2
3 LatestTweetsForTime::LatestTweetsForTime()
4     : _postedDateTimeList()
5 {
6 }
7
8 const QList<QDateTime> LatestTweetsForTime::getPostedDateTimeList() const {
9     return _postedDateTimeList;
10 }
11
12 bool LatestTweetsForTime::appendPostedDateTimeList(QDateTime &dataTime) {
13     _postedDateTimeList.append(dataTime);
14     return true;
15 }
16
17 bool LatestTweetsForTime::replacePostedDateTimeList(QDateTime &dataTime) {
18     _postedDateTimeList.removeFirst();
19     _postedDateTimeList.append(dataTime);
20     return true;
21 }
22
23 bool LatestTweetsForTime::clear(){
24     _postedDateTimeList.clear();
25     return true;
26 }