[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    Access to Kopete by using libkopete
From:       "The_Akki" <The_Akki () gmx ! de>
Date:       2011-05-10 19:15:27
Message-ID: 201105102115.38788.The_Akki () gmx ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/alternative)]


Hello @all,

I'm new on kopete-devel-list.

Actually i use SIM for Instant Messaging. Now, I want change to kopete, but i 
don't want to loose my chat history. So, i want to try to write converter.


In the first step i don't want to include it to kopete. I want only use 
libkopete.


Now, i don't sure how i have to start.  I have tried following lines:
========
#include <iostream>
#include <QObject>
#include <kopete/kopeteaccountmanager.h>
#include <kopete/kopeteaccount.h>
#include <kopete/kopeteidentitymanager.h>
#include <kopete/kopetecontactlist.h>
#include <Qt>
#include <kurl.h>

using namespace Kopete;
using namespace std;

int main()
{
    IdentityManager::self()->load();

    AccountManager* myAccMng = 0;
    myAccMng = AccountManager::self();

    std::cout << "HaveAccount: ";
    if(myAccMng)
    {
        std::cout << "YES\n";
    }else{
        std::cout << "NO\n";
        return -1;
    }

    //cout << "Any Connected: "  << myAccMng->isAnyAccountConnected() << "\n";

    myAccMng->load();
    //Kopete::ContactList::self()->load();

    QList<Account*> myList = myAccMng->accounts();
   // QList<Account*>::iterator itAccList = myList.begin();
    QListIterator<Account*> itAccList( myList );



    //cout << "Begin: " << myList.begin() << " End: " << myList.end() << "\n";
    cout << "Number of Elements: " << myList.count() << "\n";

    Account* pAcc;
    int i=0;

    while( itAccList.hasNext() )
    {
        cout << i;
        pAcc = itAccList.next();
        std::cout << pAcc->accountLabel().toStdString() << "\n";
    }

    return 0;
}
========



But this  not the right way. I get no Data and after execution i get following 
message.
========
Starte 
/home/theakki/versionsverwaltung/git/Kopete_sim/ConvSimKopete/ConvSimKopete...
HaveAccount: YES
Number of Elements: 0
unnamed app(8355)/libkopete 
Kopete::PluginManagerPrivate::~PluginManagerPrivate: Destructing plugin 
manager without going through the shutdown process! Backtrace is:  
"[
0: /usr/lib/libkdecore.so.5(kRealBacktrace(int)+0x35) [0x7f8f586f2465]
1: /usr/lib/libkopete.so.4(+0xd5edf) [0x7f8f5d392edf]
2: /lib/x86_64-linux-gnu/libc.so.6(exit+0xe1) [0x7f8f5b476961]
3: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x106) [0x7f8f5b45bf06]
4: 
/home/theakki/versionsverwaltung/git/Kopete_sim/ConvSimKopete/ConvSimKopete() 
[0x400fa9]
]
" 
========

I have tried to understand the source code, but i don't now the problem. Can 
somebody help me?

Nice regards,
The_Akki

[Attachment #7 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" \
content="1" /><style type="text/css"> p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:9pt; font-weight:400; \
font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hello \
@all,</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">I'm new on kopete-devel-list.</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Actually i use SIM for \
Instant Messaging. Now, I want change to kopete, but i don't want to loose my chat \
history. So, i want to try to write converter.</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p> \
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">In the first step i don't want to include it to kopete. I want \
only use libkopete.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br /></p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Now, i don't sure how i have \
to start.  I have tried following lines:</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">========</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'courier new'; \
color:#000080;">#include</span><span style=" font-family:'courier new'; \
color:#c0c0c0;"> </span><span style=" font-family:'courier new'; \
color:#008000;">&lt;iostream&gt;</span></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Courier New,courier'; \
color:#000080;">#include</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#008000;">&lt;QObject&gt;</span></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Courier New,courier'; \
color:#000080;">#include</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#008000;">&lt;kopete/kopeteaccountmanager.h&gt;</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#000080;">#include</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; \
color:#008000;">&lt;kopete/kopeteaccount.h&gt;</span></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Courier New,courier'; \
color:#000080;">#include</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#008000;">&lt;kopete/kopeteidentitymanager.h&gt;</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#000080;">#include</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; \
color:#008000;">&lt;kopete/kopetecontactlist.h&gt;</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#000080;">#include</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&lt;Qt&gt;</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#000080;">#include</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&lt;kurl.h&gt;</span></p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0; \
font-family:'Courier New,courier';"></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Courier New,courier'; \
color:#808000;">using</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#808000;">namespace</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#800080;">Kopete</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">;</span></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><span style=" font-family:'Courier New,courier'; \
color:#808000;">using</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#808000;">namespace</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#800080;">std</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">;</span></p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0; font-family:'Courier New,courier';"></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#808000;">int</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier';">main</span><span style=" font-family:'Courier \
New,courier'; color:#000000;">()</span></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Courier New,courier'; \
color:#000000;">{</span></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><span style=" font-family:'Courier New,courier'; color:#c0c0c0;">  \
</span><span style=" font-family:'Courier New,courier'; \
color:#800080;">IdentityManager</span><span style=" font-family:'Courier \
New,courier'; color:#000000;">::</span><span style=" font-family:'Courier \
New,courier';">self</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">()-&gt;</span><span style=" font-family:'Courier \
New,courier';">load</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">();</span></p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0; font-family:'Courier New,courier';"></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#800080;">AccountManager</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">*</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">myAccMng</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">=</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#000080;">0</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">;</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">myAccMng</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">=</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#800080;">AccountManager</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">::</span><span style=" \
font-family:'Courier New,courier';">self</span><span style=" font-family:'Courier \
New,courier'; color:#000000;">();</span></p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0; font-family:'Courier \
New,courier';"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span \
style=" font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#800080;">std</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">::</span><span style=" \
font-family:'Courier New,courier';">cout</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#000000;">&lt;&lt;</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#008000;">&quot;HaveAccount:</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&quot;</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">;</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#808000;">if</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">(myAccMng)</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">{</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">        </span><span style=" \
font-family:'Courier New,courier'; color:#800080;">std</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">::</span><span style=" \
font-family:'Courier New,courier';">cout</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#000000;">&lt;&lt;</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#008000;">&quot;YES\n&quot;</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">;</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">}</span><span style=" \
font-family:'Courier New,courier'; color:#808000;">else</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">{</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">        </span><span style=" \
font-family:'Courier New,courier'; color:#800080;">std</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">::</span><span style=" \
font-family:'Courier New,courier';">cout</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#000000;">&lt;&lt;</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#008000;">&quot;NO\n&quot;</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">;</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">        </span><span style=" \
font-family:'Courier New,courier'; color:#808000;">return</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">-</span><span style=" \
font-family:'Courier New,courier'; color:#000080;">1</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">;</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">}</span></p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">//cout</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&lt;&lt;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&quot;Any</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">Connected:</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&quot;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">  </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&lt;&lt;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; \
color:#008000;">myAccMng-&gt;isAnyAccountConnected()</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&lt;&lt;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&quot;\n&quot;;</span></p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0; \
font-family:'Courier New,courier';"></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;">    </span><span style=" font-family:'Courier New,courier'; \
color:#000000;">myAccMng-&gt;</span><span style=" font-family:'Courier \
New,courier';">load</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">();</span></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><span style=" font-family:'Courier New,courier'; color:#c0c0c0;">  \
</span><span style=" font-family:'Courier New,courier'; \
color:#008000;">//Kopete::ContactList::self()-&gt;load();</span></p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0; \
font-family:'Courier New,courier';"></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;">    </span><span style=" font-family:'Courier New,courier'; \
color:#800080;">QList</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">&lt;</span><span style=" font-family:'Courier New,courier'; \
color:#800080;">Account</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">*&gt;</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#000000;">myList</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#000000;">=</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#000000;">myAccMng-&gt;</span><span style=" font-family:'Courier \
New,courier';">accounts</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">();</span></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><span style=" font-family:'Courier New,courier'; color:#c0c0c0;">  \
</span><span style=" font-family:'Courier New,courier'; \
color:#008000;">//</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#008000;">QList&lt;Account*&gt;::iterator</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">itAccList</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">=</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">myList.begin();</span></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#800080;">QListIterator</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">&lt;</span><span style=" \
font-family:'Courier New,courier'; color:#800080;">Account</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">*&gt;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">itAccList(</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">myList</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">);</span></p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0; \
font-family:'Courier New,courier';"></p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0; font-family:'Courier \
New,courier';"></p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0; font-family:'Courier New,courier';"></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">//cout</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&lt;&lt;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&quot;Begin:</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&quot;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&lt;&lt;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">myList.begin()</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&lt;&lt;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&quot;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">End:</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&quot;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&lt;&lt;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">myList.end()</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&lt;&lt;</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#008000;">&quot;\n&quot;;</span></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier';">cout</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#000000;">&lt;&lt;</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#008000;">&quot;Number</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#008000;">of</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#008000;">Elements:</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#008000;">&quot;</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#000000;">&lt;&lt;</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#000000;">myList.</span><span style=" font-family:'Courier \
New,courier';">count</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">()</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#000000;">&lt;&lt;</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#008000;">&quot;\n&quot;</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">;</span></p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0; font-family:'Courier New,courier';"></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#800080;">Account</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">*</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">pAcc;</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#808000;">int</span><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">i=</span><span style=" \
font-family:'Courier New,courier'; color:#000080;">0</span><span style=" \
font-family:'Courier New,courier'; color:#000000;">;</span></p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0; \
font-family:'Courier New,courier';"></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;">    </span><span style=" font-family:'Courier New,courier'; \
color:#808000;">while</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">(</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#000000;">itAccList.</span><span style=" font-family:'Courier \
New,courier';">hasNext</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">()</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#000000;">)</span></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><span style=" font-family:'Courier New,courier'; color:#c0c0c0;">  \
</span><span style=" font-family:'Courier New,courier'; color:#000000;">{</span></p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">        </span><span style=" \
font-family:'Courier New,courier';">cout</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#000000;">&lt;&lt;</span><span style=" font-family:'Courier \
New,courier'; color:#c0c0c0;"> </span><span style=" font-family:'Courier \
New,courier'; color:#000000;">i;</span></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;">        </span><span style=" font-family:'Courier New,courier'; \
color:#000000;">pAcc</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#000000;">=</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#000000;">itAccList.</span><span style=" font-family:'Courier \
New,courier';">next</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">();</span></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><span style=" font-family:'Courier New,courier'; color:#c0c0c0;">  \
</span><span style=" font-family:'Courier New,courier'; \
color:#800080;">std</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">::</span><span style=" font-family:'Courier \
New,courier';">cout</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#000000;">&lt;&lt;</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#000000;">pAcc-&gt;</span><span style=" font-family:'Courier \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier'; color:#c0c0c0;">    </span><span style=" \
font-family:'Courier New,courier'; color:#000000;">}</span></p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0; \
font-family:'Courier New,courier';"></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;">    </span><span style=" font-family:'Courier New,courier'; \
color:#808000;">return</span><span style=" font-family:'Courier New,courier'; \
color:#c0c0c0;"> </span><span style=" font-family:'Courier New,courier'; \
color:#000080;">0</span><span style=" font-family:'Courier New,courier'; \
color:#000000;">;</span></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><span style=" font-family:'Courier New,courier'; \
color:#000000;">}</span></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">========</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br /></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br /></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">But this  not the right way. I get no Data and \
after execution i get following message.</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">========</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Monospace'; \
font-weight:600; color:#0807b1;">Starte \
/home/theakki/versionsverwaltung/git/Kopete_sim/ConvSimKopete/ConvSimKopete...</span></p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Monospace'; color:#181615;">HaveAccount: YES</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Monospace'; color:#181615;">Number of Elements: 0</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Monospace'; color:#b20707;">unnamed app(8355)/libkopete \
Kopete::PluginManagerPrivate::~PluginManagerPrivate: Destructing plugin manager \
without going through the shutdown process! Backtrace is:  </span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Monospace'; color:#b20707;">&quot;[</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Monospace'; color:#b20707;">0: \
/usr/lib/libkdecore.so.5(kRealBacktrace(int)+0x35) [0x7f8f586f2465]</span></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Monospace'; color:#b20707;">1: /usr/lib/libkopete.so.4(+0xd5edf) \
[0x7f8f5d392edf]</span></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><span style=" font-family:'Monospace'; color:#b20707;">2: \
/lib/x86_64-linux-gnu/libc.so.6(exit+0xe1) [0x7f8f5b476961]</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Monospace'; color:#b20707;">3: \
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x106) [0x7f8f5b45bf06]</span></p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Monospace'; color:#b20707;">4: \
/home/theakki/versionsverwaltung/git/Kopete_sim/ConvSimKopete/ConvSimKopete() \
[0x400fa9]</span></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span \
style=" font-family:'Monospace'; color:#b20707;">]</span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Monospace'; color:#b20707;">&quot; </span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">========</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I have tried to understand \
the source code, but i don't now the problem. Can somebody help me?</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Nice regards,</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">The_Akki</p></body></html>


["signature.asc" (application/pgp-signature)]

_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic