Show
Ignore:
Timestamp:
07/01/08 04:12:56 (5 months ago)
Author:
flynd
Message:

Removed uin functions from qt-gui.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/ewidgets.cpp

    r6180 r6367  
    836836    addMsg(newEventList[i]); 
    837837*/ 
    838 } 
    839  
    840 CMessageViewWidget::CMessageViewWidget(unsigned long _nUin, CMainWindow *m, QWidget *parent, const char *name, bool historyMode) 
    841   : MLView(parent,name) 
    842 { 
    843   setTextFormat(RichText); 
    844   m_nUin= _nUin; 
    845   m_szId = NULL; // avoid desalocation error at destructor 
    846   if (historyMode) 
    847   { 
    848     m_useBuffer = true; 
    849     m_nMsgStyle = m->m_histMsgStyle; 
    850     m_nDateFormat = m->m_histDateFormat; 
    851     m_extraSpacing = m->m_histVertSpacing; 
    852     m_appendLineBreak = false; 
    853   } 
    854   else 
    855   { 
    856     m_useBuffer = false; 
    857     m_nMsgStyle = m->m_chatMsgStyle; 
    858     m_nDateFormat = m->m_chatDateFormat; 
    859     m_extraSpacing = m->m_chatVertSpacing; 
    860     m_appendLineBreak = m->m_chatAppendLineBreak; 
    861   } 
    862   m_showNotices = m->m_showNotices; 
    863   m_colorRcv = m->m_colorRcv; 
    864   m_colorSnt = m->m_colorSnt; 
    865   m_colorRcvHistory = m->m_colorRcvHistory; 
    866   m_colorSntHistory = m->m_colorSntHistory; 
    867   m_colorNotice = m->m_colorNotice; 
    868   setPaletteBackgroundColor(m->m_colorChatBkg); 
    869   mainwin = m; 
    870  
    871   clear(); 
    872  
    873 /* 
    874   // add all unread messages. 
    875   vector<CUserEvent*> newEventList; 
    876   ICQUser *u = gUserManager.FetchUser(_nUin, LOCK_W); 
    877   if (u != NULL && u->NewMessages() > 0) 
    878   { 
    879     for (unsigned short i = 0; i < u->NewMessages(); i++) 
    880     { 
    881       CUserEvent *e = u->EventPeek(i); 
    882       if (e->Direction() == D_RECEIVER && e->SubCommand() == ICQ_CMDxSUB_MSG) 
    883     newEventList.push_back(e); 
    884     } 
    885   } 
    886   gUserManager.DropUser(u); 
    887   for (unsigned short i = 0; i < newEventList.size(); i++) 
    888     addMsg(newEventList[i]); */ 
    889838} 
    890839