You are not logged in.

#1 2011-06-28 16:50:07

gobeav3rs297
Member
From: Portland Oregon
Registered: 2007-11-06
Posts: 60

Any idea on how to implement a "watch-list" of sort in C++?

I need to implement a simple "watch-list" in c++.  I tried to do some research on the web, maybe try find an example but wasn't able to find any thing, codewise for a example of how to go about implementing.  Any ideas?

Offline

#2 2011-06-28 17:20:52

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Any idea on how to implement a "watch-list" of sort in C++?

Can you maybe explain in more detail?  I'm unfamiliar with what you mean by a "watch list of sorts"

Offline

#3 2011-06-28 18:05:44

gobeav3rs297
Member
From: Portland Oregon
Registered: 2007-11-06
Posts: 60

Re: Any idea on how to implement a "watch-list" of sort in C++?

What i mean by watchlist is to be able to input favorites and say these are the things i want to "watch" happen and have the application notifies the user when those items on the watchlist happens.  For example i want to watch an email account and notify me if there is an email.  I tried to look for C++ code for examples to go about doing a very simple watchlist implementation but no such luck, or maybe i'm just a very bad google searcher smile.

Offline

#4 2011-06-28 18:59:16

Zeist
Arch Linux f@h Team Member
Registered: 2008-07-04
Posts: 532

Re: Any idea on how to implement a "watch-list" of sort in C++?

This is quite broad in general, I would suggest figuring out how to get events for things such as new e-mails or other things you want to be on the watchlist into the application first. This may be a quite complex task depending on what kind of events you want to watch.

Then you would need to figure out how to notify the user, for this there are several systems in Linux.

Then the task of taking the input and sending notifications as output is relatively easy.


I haven't lost my mind; I have a tape back-up somewhere.
Twitter

Offline

#5 2011-06-28 21:46:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Any idea on how to implement a "watch-list" of sort in C++?

This isn't homework is it?

Without more specifics about the programme you are trying to write, this is a candidate for closure.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2011-06-29 06:26:17

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

Re: Any idea on how to implement a "watch-list" of sort in C++?

I suggest looking into a language like Perl. If not, then try looking at the Boost library for C++.

You may get a few ideas there.

Offline

#7 2011-06-29 10:28:33

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: Any idea on how to implement a "watch-list" of sort in C++?

I agree, this is really broad area. If you want to watch emails, you need to first know how e-mail protocols work and then receive the e-mails after certain amount of time and check against them for new mails. Maybe there are some libraries that can save you thousands amounts of time, but yeah..

There is no such thing as "watch list" unless you are using some language that is just made for handling tasks for certain jobs. (Maybe cron and bash scripts come close)

Offline

Board footer

Powered by FluxBB