adding feature in dc++0.304

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

spotty
Posts: 6
Joined: 2003-10-30 14:18

adding feature in dc++0.304

Post by spotty » 2003-11-30 19:24

i'm learning dc++0.304 code ....uhm hard but not impossible to do.

well i added a new column in user list frame.
now...

Code: Select all

         switch(col) {
            case COLUMN_NICK: return user->getNick();
            case COLUMN_SHARED: return shared;
            case COLUMN_DESCRIPTION: return user->getDescription();
            case COLUMN_TAG: return user->getTag();
            case COLUMN_CONNECTION: return user->getConnection();
            case COLUMN_EMAIL: return user->getEmail();
            case COLUMN_CLIENTID: return [b]user->getTag();[/b]
            default: return Util::emptyString;
         }
      }

now in COLUMN_CLIENTID i put user->getTag(); only for test, but i want to show client version es: DC++ or oDC++ or .....DCDC++ etc.

i need a function user->getClientVersio(); for example.

how can i do this??

second i want to add opera nick filter for user list..... based on Opera code included in odc++5.212 but i don't know code well yet..... gimme a tips pls.

sorry for my eng...... :D

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

Re: adding feature in dc++0.304

Post by GargoyleMT » 2003-12-02 17:56

spotty wrote:i need a function user->getClientVersio(); for example.

how can i do this??


Add the function to the base class of user. That's client\User.cpp and client\User.h. It'll probably be as simple as checking if the end of their description contains <oDC> or whatever.

Be aware, the betas that Opera and his testers use use this tag: <oDC V:5.22[ß5],M:A,H:0/2/2,S:1> (or similar)

Who is online

Users browsing this forum: Google [Bot] and 0 guests