Changeset View
Changeset View
Standalone View
Standalone View
plugins/messageviewer/bodypartformatter/vcard/vcardmemento.cpp
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
69 | mIndex++; | 69 | mIndex++; | ||
70 | continueToCheckEmail(); | 70 | continueToCheckEmail(); | ||
71 | } | 71 | } | ||
72 | 72 | | |||
73 | void VcardMemento::continueToCheckEmail() | 73 | void VcardMemento::continueToCheckEmail() | ||
74 | { | 74 | { | ||
75 | if (mIndex == mVCardList.count()) { | 75 | if (mIndex == mVCardList.count()) { | ||
76 | mFinished = true; | 76 | mFinished = true; | ||
77 | Q_EMIT update(Viewer::Delayed); | 77 | Q_EMIT update(Delayed); | ||
78 | } else { | 78 | } else { | ||
79 | checkEmail(); | 79 | checkEmail(); | ||
80 | } | 80 | } | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | bool VcardMemento::finished() const | 83 | bool VcardMemento::finished() const | ||
84 | { | 84 | { | ||
85 | return mFinished; | 85 | return mFinished; | ||
86 | } | 86 | } | ||
87 | 87 | | |||
88 | void VcardMemento::detach() | 88 | void VcardMemento::detach() | ||
89 | { | 89 | { | ||
90 | disconnect(this, SIGNAL(update(MessageViewer::Viewer::UpdateMode)), 0, 0); | 90 | disconnect(this, SIGNAL(update(MessageViewer::UpdateMode)), 0, 0); | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | bool VcardMemento::vcardExist(int index) const | 93 | bool VcardMemento::vcardExist(int index) const | ||
94 | { | 94 | { | ||
95 | return mVCardList.at(index).found; | 95 | return mVCardList.at(index).found; | ||
96 | } | 96 | } | ||
97 | 97 | | |||
98 | KContacts::Addressee VcardMemento::address(int index) const | 98 | KContacts::Addressee VcardMemento::address(int index) const | ||
99 | { | 99 | { | ||
100 | return mVCardList.at(index).address; | 100 | return mVCardList.at(index).address; | ||
101 | } | 101 | } | ||
102 | 102 | |