Exemplo n.º 1
0
 public void AddMessage(NodeID messageNodeID, NodeID folderNodeID)
 {
     if (m_isWindowsDesktopSearchQueuing ||
         m_file.SearchDomainObject.ContainsNode(folderNodeID))
     {
         SearchUpdateDescriptorMessageAdded messageAdded = new SearchUpdateDescriptorMessageAdded(folderNodeID, messageNodeID);
         SearchUpdateDescriptor             sud          = new SearchUpdateDescriptor((SearchUpdateDescriptorFlags)0, SearchUpdateDescriptorType.SUDT_MSG_ADD, messageAdded);
         QueueSearchUpdateDescriptor(sud);
     }
 }
Exemplo n.º 2
0
        public void ModifyMessage(NodeID messageNodeID, NodeID folderNodeID, bool isContentsTableModified)
        {
            bool sdoContainsNode = m_file.SearchDomainObject.ContainsNode(folderNodeID);

            if (m_isWindowsDesktopSearchQueuing ||
                sdoContainsNode)
            {
                SearchUpdateDescriptorMessageAdded messageModified = new SearchUpdateDescriptorMessageAdded(folderNodeID, messageNodeID);
                SearchUpdateDescriptor             sud             = new SearchUpdateDescriptor((SearchUpdateDescriptorFlags)0, SearchUpdateDescriptorType.SUDT_MSG_MOD, messageModified);
                QueueSearchUpdateDescriptor(sud);

                if (isContentsTableModified && sdoContainsNode)
                {
                    SearchUpdateDescriptorMessageAdded messageRowModified = new SearchUpdateDescriptorMessageAdded(folderNodeID, messageNodeID);
                    SearchUpdateDescriptor             sudRow             = new SearchUpdateDescriptor((SearchUpdateDescriptorFlags)0, SearchUpdateDescriptorType.SUDT_MSG_ROW_MOD, messageRowModified);
                    QueueSearchUpdateDescriptor(sudRow);
                }
            }
        }