Changeset 4860

Show
Ignore:
Timestamp:
02/24/07 16:18:23 (22 months ago)
Author:
emostar
Message:

Add a way to save the user's in the "Not In List" to the normal list. Will need some GUI hooks in the qt-gui.
See #724 for more details.

Location:
trunk/licq
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/include/licq_user.h

    r4714 r4860  
    668668    m_szClientInfo = (s ? strdup(s) : NULL); 
    669669  } 
     670  void SetPermanent(); 
    670671 
    671672  // Dynamic info fields for protocol plugins 
  • trunk/licq/src/user.cpp

    r4842 r4860  
    18411841{ 
    18421842  m_bOnContactList = m_bEnableSave = true; 
     1843  m_bNotInList = false; 
    18431844 
    18441845  // Check for old history file 
     
    23572358} 
    23582359 
     2360void ICQUser::SetPermanent() 
     2361{ 
     2362  // Set the flags and check for history file to recover 
     2363  AddToContactList(); 
     2364 
     2365  // Create the user file 
     2366  char szFilename[MAX_FILENAME_LEN]; 
     2367  char *p = PPIDSTRING(m_nPPID); 
     2368  snprintf(szFilename, MAX_FILENAME_LEN, "%s/%s/%s.%s", BASE_DIR, USER_DIR, 
     2369         m_szId, p); 
     2370  delete [] p; 
     2371  szFilename[MAX_FILENAME_LEN - 1] = '\0'; 
     2372  m_fConf.SetFileName(szFilename); 
     2373  m_fConf.SetFlags(INI_FxWARN | INI_FxALLOWxCREATE); 
     2374 
     2375  // Save all the info now 
     2376  SaveLicqInfo(); 
     2377  SaveGeneralInfo(); 
     2378  SaveMoreInfo(); 
     2379  SaveHomepageInfo(); 
     2380  SaveWorkInfo(); 
     2381  SaveAboutInfo(); 
     2382  SaveInterestsInfo(); 
     2383  SaveBackgroundsInfo(); 
     2384  SaveOrganizationsInfo(); 
     2385  SavePhoneBookInfo(); 
     2386  SavePictureInfo(); 
     2387  SaveExtInfo(); 
     2388 
     2389  // Notify the plugins of the change 
     2390  // Send a USER_BASIC, don't want a new signal just for this. 
     2391  gLicqDaemon->PushPluginSignal(new CICQSignal(SIGNAL_UPDATExUSER, 
     2392        USER_BASIC, m_szId, m_nPPID, 0)); 
     2393} 
     2394 
    23592395//-----ICQUser::SetDefaults----------------------------------------------------- 
    23602396void ICQUser::SetDefaults()