| /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| * Copyright (c) 2013, Regents of the University of California |
| * BSD license, See the LICENSE file for more information |
| * Author: Yingdi Yu <yingdi@cs.ucla.edu> |
| #include <QSystemTrayIcon> |
| #include "contactpanel.h" |
| #include "contact-storage.h" |
| #include "contact-manager.h" |
| class NewApp : public QApplication |
| NewApp(int & argc, char ** argv) |
| : QApplication(argc, argv) |
| bool notify(QObject * receiver, QEvent * event) |
| return QApplication::notify(receiver, event); |
| catch(std::exception& e){ |
| std::cerr << "Exception thrown:" << e.what() << std::endl; |
| int main(int argc, char *argv[]) |
| ContactPanel contactPanel; |
| contactPanel.activateWindow (); |